summaryrefslogtreecommitdiffstats
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-12 23:52:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-13 10:15:22 +0100
commitddf93e2c09481609c4f5fe4ab6750379146379cc (patch)
tree710634f16535e4ff09a3242428e18ef8b7af0a6b /svx
parentByteString->rtl::OStringBuffer (diff)
downloadcore-ddf93e2c09481609c4f5fe4ab6750379146379cc.tar.gz
core-ddf93e2c09481609c4f5fe4ab6750379146379cc.zip
try better template friend class syntax
Diffstat (limited to 'svx')
-rw-r--r--svx/source/inc/DGColorNameLookUp.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/inc/DGColorNameLookUp.hxx b/svx/source/inc/DGColorNameLookUp.hxx
index 9fd8dc471da7..98b72c7e6e90 100644
--- a/svx/source/inc/DGColorNameLookUp.hxx
+++ b/svx/source/inc/DGColorNameLookUp.hxx
@@ -79,8 +79,9 @@ private:
/// This ma translates from numerical color values to names.
tColorValueToNameMap maColorValueToNameMap;
-public:
- /// Create a new (the only) instance of this class.
+private:
+ /// Can only construct via singleton
+ template<typename T, typename Unique> friend class rtl::Static;
DGColorNameLookUp();
~DGColorNameLookUp();
};