editeng a11y: Use unotools::WeakReference for bullet
Replace use of the custom WeakCppRef template class for AccessibleEditableTextPara::maImageBullet by unotools::WeakReference which provides the same functionality (a weak reference and access to the the concrete implementation class). Change-Id: I333f467caeb4925d718313e679507f45c9c96e00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183671 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
@@ -651,7 +651,7 @@ uno::Reference< XAccessible > SAL_CALL AccessibleEditableTextPara::getAccessible
|
||||
aChild->SetParagraphIndex( GetParagraphIndex() );
|
||||
aChild->SetIndexInParent( i );
|
||||
|
||||
maImageBullet = aChild;
|
||||
maImageBullet = aChild.get();
|
||||
}
|
||||
|
||||
return aChild;
|
||||
|
@@ -41,6 +41,7 @@
|
||||
#include <editeng/AccessibleParaManager.hxx>
|
||||
#include <editeng/editdata.hxx>
|
||||
#include <editeng/editengdllapi.h>
|
||||
#include <unotools/weakref.hxx>
|
||||
|
||||
class SvxViewForwarder;
|
||||
class MapMode;
|
||||
@@ -354,8 +355,7 @@ private:
|
||||
SvxEditSourceAdapter* mpEditSource;
|
||||
|
||||
// the possible child (for image bullets, guarded by solar mutex)
|
||||
typedef WeakCppRef < css::accessibility::XAccessible, AccessibleImageBullet > WeakBullet;
|
||||
WeakBullet maImageBullet;
|
||||
unotools::WeakReference<AccessibleImageBullet> maImageBullet;
|
||||
|
||||
// the last string used for an Accessibility::TEXT_CHANGED event (guarded by solar mutex)
|
||||
OUString maLastTextString;
|
||||
|
Reference in New Issue
Block a user