summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-10-12 13:33:22 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-10-12 13:34:48 +0200
commit83154f9234659585cdac1c2e6781cd3498ff4a51 (patch)
treebfbd678453ed1a4ed0d652e722bc3c84b9ec428a /unotools/source
parent190334febe62d56d80489034f0ee3cf59100f6c4 (diff)
mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html Change-Id: I37b2c7b7acd31437f4be74b0163f4dac2279655b
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/config/configitem.cxx6
-rw-r--r--unotools/source/config/syslocaleoptions.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index 63573594e947..a3eb7626a3e6 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -54,7 +54,7 @@ using namespace com::sun::star::configuration;
#include <cppuhelper/implbase1.hxx> // helper for implementations
#ifdef DBG_UTIL
-inline void lcl_CFG_DBG_EXCEPTION(const sal_Char* cText, const Exception& rEx)
+static inline void lcl_CFG_DBG_EXCEPTION(const sal_Char* cText, const Exception& rEx)
{
OString sMsg(cText);
sMsg += OString(rEx.Message.getStr(), rEx.Message.getLength(), RTL_TEXTENCODING_ASCII_US);
@@ -161,7 +161,7 @@ ConfigChangeListener_Impl::~ConfigChangeListener_Impl()
{
}
-sal_Bool lcl_Find(
+static sal_Bool lcl_Find(
const rtl::OUString& rTemp,
const OUString* pCheckPropertyNames,
sal_Int32 nLength)
@@ -646,7 +646,7 @@ void ConfigItem::RemoveChangesListener()
}
}
-void lcl_normalizeLocalNames(Sequence< OUString >& _rNames, ConfigNameFormat _eFormat, Reference<XInterface> const& _xParentNode)
+static void lcl_normalizeLocalNames(Sequence< OUString >& _rNames, ConfigNameFormat _eFormat, Reference<XInterface> const& _xParentNode)
{
switch (_eFormat)
{
diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx
index 604344ba66f5..961ac7544c17 100644
--- a/unotools/source/config/syslocaleoptions.cxx
+++ b/unotools/source/config/syslocaleoptions.cxx
@@ -48,7 +48,7 @@ namespace
: public rtl::Static<Link, CurrencyChangeLink> {};
}
-com::sun::star::lang::Locale lcl_str_to_locale( const ::rtl::OUString rStr )
+static com::sun::star::lang::Locale lcl_str_to_locale( const ::rtl::OUString rStr )
{
com::sun::star::lang::Locale aRet;
if ( !rStr.isEmpty() )