summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWastack <btomi96@gmail.com>2016-03-11 01:07:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-11 08:59:30 +0000
commitce549d2a09ad9884a7e598162cf0ca6b6bc3150c (patch)
tree6f6033b12e959862c0a4bdb75e1505b6e4d449b5
parent9a13cff64783a7de3dce7d484c150605bd42a4d6 (diff)
tdf#97966: Remove 'static' keywords
Change-Id: Iced527f48afa828cc9acf5b6461674a2706cbcd7 Reviewed-on: https://gerrit.libreoffice.org/23135 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--chart2/source/model/template/PieChartType.cxx2
-rw-r--r--comphelper/source/property/propertystatecontainer.cxx2
-rw-r--r--forms/source/richtext/clipboarddispatcher.cxx2
-rw-r--r--forms/source/richtext/parametrizedattributedispatcher.cxx2
-rw-r--r--forms/source/richtext/richtextimplcontrol.cxx2
-rw-r--r--framework/source/uielement/statusbaritem.cxx2
-rw-r--r--framework/source/uifactory/addonstoolbarfactory.cxx2
-rw-r--r--l10ntools/source/propmerge.cxx6
-rw-r--r--sw/source/core/crsr/crbm.cxx4
-rw-r--r--tools/source/misc/cpuid.cxx4
10 files changed, 14 insertions, 14 deletions
diff --git a/chart2/source/model/template/PieChartType.cxx b/chart2/source/model/template/PieChartType.cxx
index f036ebc312ad..b95d083594fc 100644
--- a/chart2/source/model/template/PieChartType.cxx
+++ b/chart2/source/model/template/PieChartType.cxx
@@ -46,7 +46,7 @@ enum
PROP_PIECHARTTYPE_3DRELATIVEHEIGHT
};
-static void lcl_AddPropertiesToVector(
+void lcl_AddPropertiesToVector(
::std::vector< Property > & rOutProperties )
{
rOutProperties.push_back(
diff --git a/comphelper/source/property/propertystatecontainer.cxx b/comphelper/source/property/propertystatecontainer.cxx
index 01cfe365e309..b315a6662520 100644
--- a/comphelper/source/property/propertystatecontainer.cxx
+++ b/comphelper/source/property/propertystatecontainer.cxx
@@ -31,7 +31,7 @@ namespace comphelper
namespace
{
- static OUString lcl_getUnknownPropertyErrorMessage( const OUString& _rPropertyName )
+ OUString lcl_getUnknownPropertyErrorMessage( const OUString& _rPropertyName )
{
// TODO: perhaps it's time to think about resources in the comphelper module?
// Would be nice to have localized exception strings (a simply resource file containing
diff --git a/forms/source/richtext/clipboarddispatcher.cxx b/forms/source/richtext/clipboarddispatcher.cxx
index 09cbdbc5039d..00d5adeeeb9b 100644
--- a/forms/source/richtext/clipboarddispatcher.cxx
+++ b/forms/source/richtext/clipboarddispatcher.cxx
@@ -38,7 +38,7 @@ namespace frm
namespace
{
- static URL createClipboardURL( OClipboardDispatcher::ClipboardFunc _eFunc )
+ URL createClipboardURL( OClipboardDispatcher::ClipboardFunc _eFunc )
{
URL aURL;
switch ( _eFunc )
diff --git a/forms/source/richtext/parametrizedattributedispatcher.cxx b/forms/source/richtext/parametrizedattributedispatcher.cxx
index 47fe59a182a3..607cba973d84 100644
--- a/forms/source/richtext/parametrizedattributedispatcher.cxx
+++ b/forms/source/richtext/parametrizedattributedispatcher.cxx
@@ -53,7 +53,7 @@ namespace frm
namespace
{
- static SfxSlotId lcl_normalizeLatinScriptSlotId( SfxSlotId _nSlotId )
+ SfxSlotId lcl_normalizeLatinScriptSlotId( SfxSlotId _nSlotId )
{
switch ( _nSlotId )
{
diff --git a/forms/source/richtext/richtextimplcontrol.cxx b/forms/source/richtext/richtextimplcontrol.cxx
index 24c5b0492214..6bb684994acb 100644
--- a/forms/source/richtext/richtextimplcontrol.cxx
+++ b/forms/source/richtext/richtextimplcontrol.cxx
@@ -543,7 +543,7 @@ namespace frm
namespace
{
- static void lcl_inflate( Rectangle& _rRect, long _nInflateX, long _nInflateY )
+ void lcl_inflate( Rectangle& _rRect, long _nInflateX, long _nInflateY )
{
_rRect.Left() -= _nInflateX;
_rRect.Right() += _nInflateX;
diff --git a/framework/source/uielement/statusbaritem.cxx b/framework/source/uielement/statusbaritem.cxx
index c33bd04b10bf..a69baac781dd 100644
--- a/framework/source/uielement/statusbaritem.cxx
+++ b/framework/source/uielement/statusbaritem.cxx
@@ -33,7 +33,7 @@ namespace framework
namespace
{
-static sal_uInt16 impl_convertItemBitsToItemStyle( sal_Int16 nItemBits )
+sal_uInt16 impl_convertItemBitsToItemStyle( sal_Int16 nItemBits )
{
sal_uInt16 nStyle( 0 );
diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx
index c1356d549d0e..2003669ceff7 100644
--- a/framework/source/uifactory/addonstoolbarfactory.cxx
+++ b/framework/source/uifactory/addonstoolbarfactory.cxx
@@ -98,7 +98,7 @@ AddonsToolBarFactory::~AddonsToolBarFactory()
{
}
-static bool IsCorrectContext( const OUString& rModuleIdentifier, const OUString& aContextList )
+bool IsCorrectContext( const OUString& rModuleIdentifier, const OUString& aContextList )
{
if ( aContextList.isEmpty() )
return true;
diff --git a/l10ntools/source/propmerge.cxx b/l10ntools/source/propmerge.cxx
index 44e879263204..78680e844165 100644
--- a/l10ntools/source/propmerge.cxx
+++ b/l10ntools/source/propmerge.cxx
@@ -20,7 +20,7 @@
namespace
{
//Find ascii escaped unicode
- static sal_Int32 lcl_IndexOfUnicode(
+ sal_Int32 lcl_IndexOfUnicode(
const OString& rSource, const sal_Int32 nFrom = 0 )
{
const OString sHexDigits = "0123456789abcdefABCDEF";
@@ -41,7 +41,7 @@ namespace
}
//Convert ascii escaped unicode to utf-8
- static OString lcl_ConvertToUTF8( const OString& rText )
+ OString lcl_ConvertToUTF8( const OString& rText )
{
OString sResult = rText;
sal_Int32 nIndex = lcl_IndexOfUnicode( sResult );
@@ -59,7 +59,7 @@ namespace
}
//Escape unicode characters
- static void lcl_PrintJavaStyle( const OString& rText, std::ofstream &rOfstream )
+ void lcl_PrintJavaStyle( const OString& rText, std::ofstream &rOfstream )
{
const OUString sTemp =
OStringToOUString( rText, RTL_TEXTENCODING_UTF8 );
diff --git a/sw/source/core/crsr/crbm.cxx b/sw/source/core/crsr/crbm.cxx
index 89afac38c7c2..bd82a2457438 100644
--- a/sw/source/core/crsr/crbm.cxx
+++ b/sw/source/core/crsr/crbm.cxx
@@ -64,13 +64,13 @@ namespace
SwCursorSaveState m_aSaveState;
};
- static bool lcl_ReverseMarkOrderingByEnd(const IDocumentMarkAccess::pMark_t& rpFirst,
+ bool lcl_ReverseMarkOrderingByEnd(const IDocumentMarkAccess::pMark_t& rpFirst,
const IDocumentMarkAccess::pMark_t& rpSecond)
{
return rpFirst->GetMarkEnd() > rpSecond->GetMarkEnd();
}
- static bool lcl_IsInvisibleBookmark(IDocumentMarkAccess::pMark_t pMark)
+ bool lcl_IsInvisibleBookmark(IDocumentMarkAccess::pMark_t pMark)
{
return IDocumentMarkAccess::GetType(*pMark) != IDocumentMarkAccess::MarkType::BOOKMARK;
}
diff --git a/tools/source/misc/cpuid.cxx b/tools/source/misc/cpuid.cxx
index 9cdc4995dbce..5bef56c0fe9c 100644
--- a/tools/source/misc/cpuid.cxx
+++ b/tools/source/misc/cpuid.cxx
@@ -22,13 +22,13 @@ namespace
{
#if defined(_MSC_VER)
#include <intrin.h>
-static void getCpuId(uint32_t array[4])
+void getCpuId(uint32_t array[4])
{
__cpuid((int*)array, 1);
}
#else
#include <cpuid.h>
-static void getCpuId(uint32_t array[4])
+void getCpuId(uint32_t array[4])
{
__get_cpuid(1, array + 0, array + 1, array + 2, array + 3);
}