summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-12 09:46:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-12 11:49:04 +0000
commitefa5db0755f0a0af41b9958ef3d5edeaddaed056 (patch)
treebb64adc26a1199ccd9e0f41cde75b1ac2e3cfbe6 /include/svl
parent2c2e80da68efcee5bffdb61d9c078f9360a639a4 (diff)
leave this Clone as inline
so code isn't generated for it unless the new_clone is required, which it isn't under gcc. Change-Id: I07e0b3e4b2e07625509b51ba7d37e24440f56cfe
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/zforlist.hxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx
index 4b06d40517d4..e2df52d5b4a4 100644
--- a/include/svl/zforlist.hxx
+++ b/include/svl/zforlist.hxx
@@ -255,7 +255,7 @@ public:
sal_Unicode cZero );
~NfCurrencyEntry() {}
- NfCurrencyEntry* Clone() const;
+ inline NfCurrencyEntry* Clone() const;
/// Symbols and language identical
bool operator==( const NfCurrencyEntry& r ) const;
@@ -305,9 +305,15 @@ public:
};
/**
- * Necessary for ptr_vector on Windows. Please don't remove this, or at
- * least check it on Windows before attempting to remove it.
+ * Necessary for ptr_vector on Windows. Please don't remove these, or at
+ * least check it on Windows before attempting to remove them.
*/
+NfCurrencyEntry* NfCurrencyEntry::Clone() const
+{
+ return new NfCurrencyEntry(
+ aSymbol, aBankSymbol, eLanguage, nPositiveFormat, nNegativeFormat, nDigits, cZeroChar);
+}
+
inline NfCurrencyEntry* new_clone( const NfCurrencyEntry& r )
{
return r.Clone();