summaryrefslogtreecommitdiff
path: root/svx/source/sdr/attribute/sdrtextattribute.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/attribute/sdrtextattribute.cxx')
-rw-r--r--svx/source/sdr/attribute/sdrtextattribute.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/svx/source/sdr/attribute/sdrtextattribute.cxx b/svx/source/sdr/attribute/sdrtextattribute.cxx
index c9623a92498f..5c9ecb34ede2 100644
--- a/svx/source/sdr/attribute/sdrtextattribute.cxx
+++ b/svx/source/sdr/attribute/sdrtextattribute.cxx
@@ -23,7 +23,6 @@
#include <svx/svdotext.hxx>
#include <editeng/outlobj.hxx>
#include <svx/sdr/properties/properties.hxx>
-#include <rtl/instance.hxx>
namespace drawinglayer::attribute
@@ -229,8 +228,11 @@ namespace drawinglayer::attribute
namespace
{
- struct theGlobalDefault :
- public rtl::Static< SdrTextAttribute::ImplType, theGlobalDefault > {};
+ SdrTextAttribute::ImplType& theGlobalDefault()
+ {
+ static SdrTextAttribute::ImplType SINGLETON;
+ return SINGLETON;
+ }
}
SdrTextAttribute::SdrTextAttribute(
@@ -264,7 +266,7 @@ namespace drawinglayer::attribute
}
SdrTextAttribute::SdrTextAttribute()
- : mpSdrTextAttribute(theGlobalDefault::get())
+ : mpSdrTextAttribute(theGlobalDefault())
{
}
@@ -284,7 +286,7 @@ namespace drawinglayer::attribute
bool SdrTextAttribute::isDefault() const
{
- return mpSdrTextAttribute.same_object(theGlobalDefault::get());
+ return mpSdrTextAttribute.same_object(theGlobalDefault());
}
SdrTextAttribute& SdrTextAttribute::operator=(const SdrTextAttribute& rCandidate)