summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorWastack <btomi96@gmail.com>2016-03-31 08:48:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-01 06:46:47 +0000
commit84fd42c1f58627f3e03ee6062fa2812a4890d941 (patch)
tree3efa54d897e832904b5441654b7c6f4fe24faebc /vcl
parent9af411abce1e22d55b73d5bbac3b7a6a8535eb3b (diff)
tdf#97966 Drop 'static' keywords
Including no keywords from extern "C" blocks Change-Id: I7769c9d2a131d7389ef6ab08c0fbd12bc624778c Reviewed-on: https://gerrit.libreoffice.org/23678 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/field.cxx10
-rw-r--r--vcl/source/control/imp_listbox.cxx4
-rw-r--r--vcl/source/control/longcurr.cxx10
-rw-r--r--vcl/source/filter/wmf/enhwmf.cxx2
-rw-r--r--vcl/source/gdi/print.cxx4
-rw-r--r--vcl/source/image/ImplImageTree.cxx6
-rw-r--r--vcl/source/window/toolbox.cxx2
-rw-r--r--vcl/unx/generic/fontmanager/fontconfig.cxx2
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx4
-rw-r--r--vcl/unx/generic/window/salframe.cxx2
-rw-r--r--vcl/unx/gtk/salprn-gtk.cxx14
11 files changed, 30 insertions, 30 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 75565c5be564..849f2f05f1ad 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -51,7 +51,7 @@ namespace
#define FORMAT_METRIC 2
#define FORMAT_CURRENCY 3
-static sal_Int64 ImplPower10( sal_uInt16 n )
+sal_Int64 ImplPower10( sal_uInt16 n )
{
sal_uInt16 i;
sal_Int64 nValue = 1;
@@ -62,7 +62,7 @@ static sal_Int64 ImplPower10( sal_uInt16 n )
return nValue;
}
-static bool ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
+bool ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
bool bStrictFormat, bool bThousandSep,
const LocaleDataWrapper& rLocaleDataWrappper )
{
@@ -85,7 +85,7 @@ static bool ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
}
}
-static bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue,
+bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue,
sal_uInt16 nDecDigits, const LocaleDataWrapper& rLocaleDataWrappper,
bool bCurrency = false )
{
@@ -293,7 +293,7 @@ static bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue,
return true;
}
-static void ImplUpdateSeparatorString( OUString& io_rText,
+void ImplUpdateSeparatorString( OUString& io_rText,
const OUString& rOldDecSep, const OUString& rNewDecSep,
const OUString& rOldThSep, const OUString& rNewThSep )
{
@@ -329,7 +329,7 @@ static void ImplUpdateSeparatorString( OUString& io_rText,
io_rText = aBuf.makeStringAndClear();
}
-static void ImplUpdateSeparators( const OUString& rOldDecSep, const OUString& rNewDecSep,
+void ImplUpdateSeparators( const OUString& rOldDecSep, const OUString& rNewDecSep,
const OUString& rOldThSep, const OUString& rNewThSep,
Edit* pEdit )
{
diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx
index 19835250a3f9..65a359ae7041 100644
--- a/vcl/source/control/imp_listbox.cxx
+++ b/vcl/source/control/imp_listbox.cxx
@@ -1635,7 +1635,7 @@ bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
namespace
{
- static vcl::StringEntryIdentifier lcl_getEntry( const ImplEntryList& _rList, sal_Int32 _nPos, OUString& _out_entryText )
+ vcl::StringEntryIdentifier lcl_getEntry( const ImplEntryList& _rList, sal_Int32 _nPos, OUString& _out_entryText )
{
OSL_PRECOND( ( _nPos != LISTBOX_ENTRY_NOTFOUND ), "lcl_getEntry: invalid position!" );
sal_Int32 nEntryCount( _rList.GetEntryCount() );
@@ -1648,7 +1648,7 @@ namespace
return reinterpret_cast< vcl::StringEntryIdentifier >( _nPos + 1 );
}
- static sal_Int32 lcl_getEntryPos( vcl::StringEntryIdentifier _entry )
+ sal_Int32 lcl_getEntryPos( vcl::StringEntryIdentifier _entry )
{
// our pos is 0-based, but StringEntryIdentifier does not allow for a NULL
return static_cast< sal_Int32 >( reinterpret_cast< sal_Int64 >( _entry ) ) - 1;
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx
index 3e7c1f0ccf0a..d58bd1955f9f 100644
--- a/vcl/source/control/longcurr.cxx
+++ b/vcl/source/control/longcurr.cxx
@@ -38,7 +38,7 @@ namespace
#define FORMAT_LONGCURRENCY 4
-static BigInt ImplPower10( sal_uInt16 n )
+BigInt ImplPower10( sal_uInt16 n )
{
sal_uInt16 i;
BigInt nValue = 1;
@@ -49,7 +49,7 @@ static BigInt ImplPower10( sal_uInt16 n )
return nValue;
}
-static OUString ImplGetCurr( const LocaleDataWrapper& rLocaleDataWrapper, const BigInt &rNumber, sal_uInt16 nDigits, const OUString& rCurrSymbol, bool bShowThousandSep )
+OUString ImplGetCurr( const LocaleDataWrapper& rLocaleDataWrapper, const BigInt &rNumber, sal_uInt16 nDigits, const OUString& rCurrSymbol, bool bShowThousandSep )
{
DBG_ASSERT( nDigits < 10, "LongCurrency may only have 9 decimal places" );
@@ -97,7 +97,7 @@ static OUString ImplGetCurr( const LocaleDataWrapper& rLocaleDataWrapper, const
return aTemplate.makeStringAndClear();
}
-static bool ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
+bool ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
bool bStrictFormat, bool bThousandSep,
const LocaleDataWrapper& rLocaleDataWrapper )
{
@@ -120,7 +120,7 @@ static bool ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
}
}
-static bool ImplNumericGetValue( const OUString& rStr, BigInt& rValue,
+bool ImplNumericGetValue( const OUString& rStr, BigInt& rValue,
sal_uInt16 nDecDigits, const LocaleDataWrapper& rLocaleDataWrapper,
bool bCurrency = false )
{
@@ -244,7 +244,7 @@ static bool ImplNumericGetValue( const OUString& rStr, BigInt& rValue,
return true;
}
-static bool ImplLongCurrencyProcessKeyInput( Edit* pEdit, const KeyEvent& rKEvt,
+bool ImplLongCurrencyProcessKeyInput( Edit* pEdit, const KeyEvent& rKEvt,
bool, bool bUseThousandSep, const LocaleDataWrapper& rLocaleDataWrapper )
{
// There's no StrictFormat that makes sense here, thus allow all chars
diff --git a/vcl/source/filter/wmf/enhwmf.cxx b/vcl/source/filter/wmf/enhwmf.cxx
index 15845a0bd1b3..1a0e7def2de7 100644
--- a/vcl/source/filter/wmf/enhwmf.cxx
+++ b/vcl/source/filter/wmf/enhwmf.cxx
@@ -361,7 +361,7 @@ SvStream& operator>>(SvStream& rInStream, XForm& rXForm)
return rInStream;
}
-static bool ImplReadRegion( tools::PolyPolygon& rPolyPoly, SvStream& rStream, sal_uInt32 nLen )
+bool ImplReadRegion( tools::PolyPolygon& rPolyPoly, SvStream& rStream, sal_uInt32 nLen )
{
if (nLen == 0)
return false;
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 0509015c1428..725605348e32 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -49,14 +49,14 @@ int nImplSysDialog = 0;
namespace
{
- static Paper ImplGetPaperFormat( long nWidth100thMM, long nHeight100thMM )
+ Paper ImplGetPaperFormat( long nWidth100thMM, long nHeight100thMM )
{
PaperInfo aInfo(nWidth100thMM, nHeight100thMM);
aInfo.doSloppyFit();
return aInfo.getPaper();
}
- static const PaperInfo& ImplGetEmptyPaper()
+ const PaperInfo& ImplGetEmptyPaper()
{
static PaperInfo aInfo(PAPER_USER);
return aInfo;
diff --git a/vcl/source/image/ImplImageTree.cxx b/vcl/source/image/ImplImageTree.cxx
index 4c616d752987..e7dfc0f495f0 100644
--- a/vcl/source/image/ImplImageTree.cxx
+++ b/vcl/source/image/ImplImageTree.cxx
@@ -53,12 +53,12 @@ using namespace css;
namespace {
-static OUString createPath(OUString const & name, sal_Int32 pos, OUString const & locale)
+OUString createPath(OUString const & name, sal_Int32 pos, OUString const & locale)
{
return name.copy(0, pos + 1) + locale + name.copy(pos);
}
-static std::shared_ptr<SvStream> wrapStream(css::uno::Reference< css::io::XInputStream > const & stream)
+std::shared_ptr<SvStream> wrapStream(css::uno::Reference< css::io::XInputStream > const & stream)
{
// This could use SvInputStream instead if that did not have a broken
// SeekPos implementation for an XInputStream that is not also XSeekable
@@ -79,7 +79,7 @@ static std::shared_ptr<SvStream> wrapStream(css::uno::Reference< css::io::XInput
return s;
}
-static void loadImageFromStream(std::shared_ptr<SvStream> xStream, OUString const & rPath, BitmapEx & rBitmap)
+void loadImageFromStream(std::shared_ptr<SvStream> xStream, OUString const & rPath, BitmapEx & rBitmap)
{
if (rPath.endsWith(".png"))
{
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 94cd082b7ed2..d7ea498c6982 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2240,7 +2240,7 @@ Size ToolBox::ImplGetOptimalFloatingSize()
namespace
{
-static void lcl_hideDoubleSeparators( std::vector< ImplToolItem >& rItems )
+void lcl_hideDoubleSeparators( std::vector< ImplToolItem >& rItems )
{
bool bLastSep( true );
std::vector< ImplToolItem >::iterator it;
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx
index 8bccc020b92a..73ad87afe6b0 100644
--- a/vcl/unx/generic/fontmanager/fontconfig.cxx
+++ b/vcl/unx/generic/fontmanager/fontconfig.cxx
@@ -251,7 +251,7 @@ void FontCfgWrapper::release()
namespace
{
- static FcChar8* bestname(const std::vector<lang_and_element> &elements, const LanguageTag & rLangTag);
+ FcChar8* bestname(const std::vector<lang_and_element> &elements, const LanguageTag & rLangTag);
FcChar8* bestname(const std::vector<lang_and_element> &elements, const LanguageTag & rLangTag)
{
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index b470eff7052a..6444cc4fe522 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -495,7 +495,7 @@ cairo::SurfaceSharedPtr X11SalGraphics::CreateSurface(const cairo::CairoSurfaceS
namespace
{
- static cairo::X11SysData getSysData( const vcl::Window& rWindow )
+ cairo::X11SysData getSysData( const vcl::Window& rWindow )
{
const SystemEnvData* pSysData = cairo::GetSysData(&rWindow);
@@ -505,7 +505,7 @@ namespace
return cairo::X11SysData(*pSysData);
}
- static cairo::X11SysData getSysData( const VirtualDevice& rVirDev )
+ cairo::X11SysData getSysData( const VirtualDevice& rVirDev )
{
return cairo::X11SysData( rVirDev.GetSystemGfxData() );
}
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index a8e0cabf7bba..b6881401f07e 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -2547,7 +2547,7 @@ struct CompressWheelEventsData
int count; // number of compressed events
};
-static Bool compressWheelEvents( Display*, XEvent* event, XPointer p )
+Bool compressWheelEvents( Display*, XEvent* event, XPointer p )
{
CompressWheelEventsData* data = reinterpret_cast< CompressWheelEventsData* >( p );
if( data->ignore )
diff --git a/vcl/unx/gtk/salprn-gtk.cxx b/vcl/unx/gtk/salprn-gtk.cxx
index 6ea55a5f21d9..3a37197ffa6d 100644
--- a/vcl/unx/gtk/salprn-gtk.cxx
+++ b/vcl/unx/gtk/salprn-gtk.cxx
@@ -147,14 +147,14 @@ GtkSalPrinter_Impl::~GtkSalPrinter_Impl()
namespace
{
-static GtkInstance const&
+GtkInstance const&
lcl_getGtkSalInstance()
{
// we _know_ this is GtkInstance
return *static_cast<GtkInstance*>(GetGtkSalData()->m_pInstance);
}
-static bool
+bool
lcl_useSystemPrintDialog()
{
return officecfg::Office::Common::Misc::UseSystemPrintDialog::get()
@@ -312,7 +312,7 @@ GtkSalPrinter::EndJob()
namespace
{
-static void
+void
lcl_setHelpText(
GtkWidget* const io_pWidget,
const uno::Sequence<OUString>& i_rHelpTexts,
@@ -323,7 +323,7 @@ lcl_setHelpText(
OUStringToOString(i_rHelpTexts.getConstArray()[i_nIndex], RTL_TEXTENCODING_UTF8).getStr());
}
-static GtkWidget*
+GtkWidget*
lcl_makeFrame(
GtkWidget* const i_pChild,
const OUString &i_rText,
@@ -352,7 +352,7 @@ lcl_makeFrame(
return pFrame;
}
-static void
+void
lcl_extractHelpTextsOrIds(
const beans::PropertyValue& rEntry,
uno::Sequence<OUString>& rHelpStrings)
@@ -368,7 +368,7 @@ lcl_extractHelpTextsOrIds(
}
}
-static GtkWidget*
+GtkWidget*
lcl_combo_box_text_new()
{
#if GTK_CHECK_VERSION(3,0,0)
@@ -378,7 +378,7 @@ lcl_combo_box_text_new()
#endif
}
-static void
+void
lcl_combo_box_text_append(GtkWidget* const pWidget, gchar const* const pText)
{
#if GTK_CHECK_VERSION(3,0,0)