From 1271eadfac7e77ff7b249e64be3857ffdc0a261c Mon Sep 17 00:00:00 2001 From: Wastack Date: Thu, 31 Mar 2016 08:43:53 +0200 Subject: tdf#97966 Drop 'static' keywords Including no keywords from extern "C" blocks Change-Id: Id9dd5a53d6ea5134ebb473bd0463f8f42965a211 Reviewed-on: https://gerrit.libreoffice.org/23674 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- l10ntools/source/export.cxx | 4 ++-- l10ntools/source/lngmerge.cxx | 2 +- l10ntools/source/treemerge.cxx | 6 +++--- l10ntools/source/xmlparse.cxx | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'l10ntools/source') diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 26b3fe511cef..d8dbaaea2e8d 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -48,7 +48,7 @@ std::unique_ptr< Export > exporter; } -static OString lcl_GetListTyp( const sal_uInt16 nTyp, const bool bUpperCamelCase ) +OString lcl_GetListTyp( const sal_uInt16 nTyp, const bool bUpperCamelCase ) { OString sType; switch (nTyp) @@ -176,7 +176,7 @@ bool ResData::SetId( const OString& rId, sal_uInt16 nLevel ) namespace { -static sal_Int32 lcl_countOccurrences(const OString& text, char c) +sal_Int32 lcl_countOccurrences(const OString& text, char c) { sal_Int32 n = 0; for (sal_Int32 i = 0;; ++i) { diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx index da26398d710d..1d33c929278a 100644 --- a/l10ntools/source/lngmerge.cxx +++ b/l10ntools/source/lngmerge.cxx @@ -33,7 +33,7 @@ OString getBracketedContent(const OString& text) { return text.getToken(1, '[').getToken(0, ']'); } -static void lcl_RemoveUTF8ByteOrderMarker( OString &rString ) +void lcl_RemoveUTF8ByteOrderMarker( OString &rString ) { if( rString.getLength() >= 3 && rString[0] == '\xEF' && rString[1] == '\xBB' && rString[2] == '\xBF' ) diff --git a/l10ntools/source/treemerge.cxx b/l10ntools/source/treemerge.cxx index b98b0621e952..978d393854c0 100644 --- a/l10ntools/source/treemerge.cxx +++ b/l10ntools/source/treemerge.cxx @@ -27,7 +27,7 @@ namespace { // Extract strings from nodes on all level recursively - static void lcl_ExtractLevel( + void lcl_ExtractLevel( const xmlDocPtr pSource, const xmlNodePtr pRoot, const xmlChar* pNodeName, PoOfstream& rPOStream ) { @@ -59,7 +59,7 @@ namespace } // Update id and content of the topic - static xmlNodePtr lcl_UpdateTopic( + xmlNodePtr lcl_UpdateTopic( const xmlNodePtr pCurrent, const OString& rXhpRoot ) { xmlNodePtr pReturn = pCurrent; @@ -139,7 +139,7 @@ namespace return pReturn; } // Localize title attribute of help_section and node tags - static void lcl_MergeLevel( + void lcl_MergeLevel( xmlDocPtr io_pSource, const xmlNodePtr pRoot, const xmlChar * pNodeName, MergeDataFile* pMergeDataFile, const OString& rLang, const OString& rXhpRoot ) diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index 97d6012d812f..3f23923216fb 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -764,7 +764,7 @@ void XMLElement::Print(XMLNode *pCur, OStringBuffer& rBuffer, bool bRootelement namespace { -static OUString lcl_pathnameToAbsoluteUrl(const OString& rPathname) +OUString lcl_pathnameToAbsoluteUrl(const OString& rPathname) { OUString sPath = OStringToOUString(rPathname, RTL_TEXTENCODING_UTF8 ); OUString sUrl; @@ -1034,7 +1034,7 @@ XMLFile *SimpleXMLParser::Execute( const OString &rFileName, XMLFile* pXMLFileIn namespace { -static icu::UnicodeString lcl_QuotRange( +icu::UnicodeString lcl_QuotRange( const icu::UnicodeString& rString, const sal_Int32 nStart, const sal_Int32 nEnd, bool bInsideTag = false ) { @@ -1072,7 +1072,7 @@ static icu::UnicodeString lcl_QuotRange( return sReturn; } -static bool lcl_isTag( const icu::UnicodeString& rString ) +bool lcl_isTag( const icu::UnicodeString& rString ) { static const int nSize = 13; static const icu::UnicodeString vTags[nSize] = { -- cgit