summaryrefslogtreecommitdiff
path: root/svx/source/sdr/attribute/sdrformtextattribute.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/attribute/sdrformtextattribute.cxx')
-rw-r--r--svx/source/sdr/attribute/sdrformtextattribute.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/svx/source/sdr/attribute/sdrformtextattribute.cxx b/svx/source/sdr/attribute/sdrformtextattribute.cxx
index cdec873b0d26..69fff8a8d724 100644
--- a/svx/source/sdr/attribute/sdrformtextattribute.cxx
+++ b/svx/source/sdr/attribute/sdrformtextattribute.cxx
@@ -45,7 +45,6 @@
#include <sdr/attribute/sdrformtextoutlineattribute.hxx>
#include <com/sun/star/drawing/LineCap.hpp>
#include <com/sun/star/drawing/LineStyle.hpp>
-#include <rtl/instance.hxx>
// helper to get line, stroke and transparence attributes from SfxItemSet
@@ -251,8 +250,11 @@ namespace drawinglayer::attribute
namespace
{
- struct theGlobalDefault :
- public rtl::Static< SdrFormTextAttribute::ImplType, theGlobalDefault > {};
+ SdrFormTextAttribute::ImplType& theGlobalDefault()
+ {
+ static SdrFormTextAttribute::ImplType SINGLETON;
+ return SINGLETON;
+ }
}
SdrFormTextAttribute::SdrFormTextAttribute(const SfxItemSet& rSet)
@@ -261,7 +263,7 @@ namespace drawinglayer::attribute
}
SdrFormTextAttribute::SdrFormTextAttribute()
- : mpSdrFormTextAttribute(theGlobalDefault::get())
+ : mpSdrFormTextAttribute(theGlobalDefault())
{
}
@@ -281,7 +283,7 @@ namespace drawinglayer::attribute
bool SdrFormTextAttribute::isDefault() const
{
- return mpSdrFormTextAttribute.same_object(theGlobalDefault::get());
+ return mpSdrFormTextAttribute.same_object(theGlobalDefault());
}
SdrFormTextAttribute& SdrFormTextAttribute::operator=(const SdrFormTextAttribute& rCandidate)