diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-12-01 16:03:03 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-12-08 11:30:32 +0100 |
commit | 5d10ae6f51ecbd9bbe29fd8d0f2694ce12b38f17 (patch) | |
tree | 0f8682ddd318803f9d633a8a2642f2c380c18045 /vcl | |
parent | fb978b8123a47123d184daf390ce17eaacbc05d9 (diff) |
Put local static fucntions into anonymous namespace.
Change-Id: Id838860b6d44febe72fe3e51081107d5635e19b8
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/field.cxx | 5 | ||||
-rw-r--r-- | vcl/source/control/longcurr.cxx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 058b15872cbf..26d3cffc51ce 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -43,6 +43,9 @@ using namespace ::com::sun::star; using namespace ::comphelper; +namespace +{ + #define FORMAT_NUMERIC 1 #define FORMAT_METRIC 2 #define FORMAT_CURRENCY 3 @@ -285,6 +288,8 @@ static void ImplUpdateSeparators( const OUString& rOldDecSep, const OUString& rN } } +} // namespace + FormatterBase::FormatterBase( Edit* pField ) { mpField = pField; diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx index f944fb2b5ec7..e9e8ea2e1b49 100644 --- a/vcl/source/control/longcurr.cxx +++ b/vcl/source/control/longcurr.cxx @@ -35,6 +35,9 @@ using namespace ::comphelper; +namespace +{ + #define FORMAT_LONGCURRENCY 4 static BigInt ImplPower10( sal_uInt16 n ) @@ -248,6 +251,8 @@ static bool ImplLongCurrencyProcessKeyInput( Edit* pEdit, const KeyEvent& rKEvt, return ImplNumericProcessKeyInput( pEdit, rKEvt, sal_False, bUseThousandSep, rLocaleDataWrapper ); } +} // namespace + inline bool ImplLongCurrencyGetValue( const OUString& rStr, BigInt& rValue, sal_uInt16 nDecDigits, const LocaleDataWrapper& rLocaleDataWrapper ) { |