diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-03-30 14:06:04 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-30 14:06:04 +0200 |
commit | 9b39649fa1ce4d81658a6c9448cfdf76581813f0 (patch) | |
tree | 0c25ff370a7516169c89c762141c6412a651d5a2 | |
parent | avmedia: fix varargs call for WNT 64-bit (diff) | |
download | core-9b39649fa1ce4d81658a6c9448cfdf76581813f0.tar.gz core-9b39649fa1ce4d81658a6c9448cfdf76581813f0.zip |
loplugin:staticanonymous
cf. <https://gerrit.libreoffice.org/#/c/23630/> "tdf#97966 Compiler plugin"; in
code not covered by Tamás's pending "tdf#97966 Drop 'static' keywords" changes.
Change-Id: Ifbaef83fdb1fde7e25fafd5746cdbf99c334c5be
-rw-r--r-- | extensions/source/update/check/updatecheck.cxx | 6 | ||||
-rw-r--r-- | sal/osl/unx/signal.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/DocumentRedlineManager.cxx | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx index 74221ea0ddc2..9899472dba2a 100644 --- a/extensions/source/update/check/updatecheck.cxx +++ b/extensions/source/update/check/updatecheck.cxx @@ -98,7 +98,7 @@ OUString getReleaseNote(const UpdateInfo& rInfo, sal_uInt8 pos, bool autoDownloa namespace { -static inline OUString getBuildId() +inline OUString getBuildId() { OUString aPathVal("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("version") ":buildid}"); rtl::Bootstrap::expandMacros(aPathVal); @@ -107,7 +107,7 @@ static inline OUString getBuildId() #if defined LINUX || defined SOLARIS -static inline OUString getBaseInstallation() +inline OUString getBaseInstallation() { OUString aPathVal("$BRAND_BASE_DIR"); rtl::Bootstrap::expandMacros(aPathVal); @@ -196,7 +196,7 @@ OUString getImageFromFileName(const OUString& aFile) } -static uno::Reference< beans::XPropertySet > createMenuBarUI( +uno::Reference< beans::XPropertySet > createMenuBarUI( const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< task::XJob >& xJob) { diff --git a/sal/osl/unx/signal.cxx b/sal/osl/unx/signal.cxx index 9f44d31d078b..7f864568a402 100644 --- a/sal/osl/unx/signal.cxx +++ b/sal/osl/unx/signal.cxx @@ -352,7 +352,7 @@ void callSystemHandler(int signal) } #if defined HAVE_VALGRIND_HEADERS -static void DUMPCURRENTALLOCS() +void DUMPCURRENTALLOCS() { VALGRIND_PRINTF( "=== start memcheck dump of active allocations ===\n" ); diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx index 4974408b1a08..58551bd916dc 100644 --- a/sw/source/core/doc/DocumentRedlineManager.cxx +++ b/sw/source/core/doc/DocumentRedlineManager.cxx @@ -42,7 +42,7 @@ using namespace com::sun::star; // helper function for lcl_CheckRedline // 1. make sure that pPos->nContent points into pPos->nNode // 2. check that position is valid and doesn't point after text - static void lcl_CheckPosition( const SwPosition* pPos ) + void lcl_CheckPosition( const SwPosition* pPos ) { assert(dynamic_cast<SwIndexReg*>(&pPos->nNode.GetNode()) == pPos->nContent.GetIdxReg()); @@ -58,7 +58,7 @@ using namespace com::sun::star; } } - static void lcl_CheckPam( const SwPaM* pPam ) + void lcl_CheckPam( const SwPaM* pPam ) { assert(pPam); lcl_CheckPosition( pPam->GetPoint() ); @@ -67,7 +67,7 @@ using namespace com::sun::star; // check validity of the redline table. Checks redline bounds, and make // sure the redlines are sorted and non-overlapping. - static void lcl_CheckRedline( IDocumentRedlineAccess& redlineAccess ) + void lcl_CheckRedline( IDocumentRedlineAccess& redlineAccess ) { const SwRedlineTable& rTable = redlineAccess.GetRedlineTable(); |