summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-10-12 13:30:30 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-10-12 13:34:48 +0200
commit190334febe62d56d80489034f0ee3cf59100f6c4 (patch)
tree4cde37896e4b6a00bc84fbc5e69fbe41a8f8dcb9
parentf7a24eff2d40ca30c6f299ab6534393c5c146b95 (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: I1a0e436051d48e7f6224d6f0fc602347df2d4df1
-rw-r--r--extensions/source/bibliography/bibload.cxx2
-rw-r--r--extensions/source/bibliography/datman.cxx2
-rw-r--r--extensions/source/bibliography/framectr.cxx2
-rw-r--r--extensions/source/bibliography/general.cxx4
-rw-r--r--linguistic/source/dicimp.cxx2
-rw-r--r--linguistic/source/lngopt.cxx2
-rw-r--r--oox/source/export/SchXMLSeriesHelper.cxx2
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx4
-rw-r--r--rsc/source/prj/gui.cxx2
-rw-r--r--sal/rtl/source/math.cxx6
-rw-r--r--scaddins/source/analysis/analysishelper.cxx4
-rw-r--r--scaddins/source/analysis/financial.cxx4
-rw-r--r--sccomp/source/solver/solver.cxx8
-rw-r--r--sd/source/core/drawdoc3.cxx2
-rw-r--r--sd/source/ui/app/sdxfer.cxx2
-rw-r--r--sd/source/ui/dlg/prntopts.cxx2
-rw-r--r--sd/source/ui/unoidl/unoobj.cxx14
-rw-r--r--sfx2/source/appl/newhelp.cxx2
-rw-r--r--sfx2/source/control/templatelocalview.cxx4
-rw-r--r--sfx2/source/dialog/templdlg.cxx2
-rw-r--r--sfx2/source/doc/objuno.cxx2
-rw-r--r--sfx2/source/doc/templatedlg.cxx10
-rw-r--r--sot/source/sdstor/stgcache.cxx2
23 files changed, 43 insertions, 43 deletions
diff --git a/extensions/source/bibliography/bibload.cxx b/extensions/source/bibliography/bibload.cxx
index d963d2cddd6b..8dce89ac480f 100644
--- a/extensions/source/bibliography/bibload.cxx
+++ b/extensions/source/bibliography/bibload.cxx
@@ -458,7 +458,7 @@ Reference< XResultSet > BibliographyLoader::GetDataCursor() const
return m_xCursor;
}
-rtl::OUString lcl_AddProperty(Reference< XNameAccess > xColumns,
+static rtl::OUString lcl_AddProperty(Reference< XNameAccess > xColumns,
const Mapping* pMapping, const String& rColumnName)
{
String sColumnName(rColumnName);
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index 242733b52744..3aed96675c01 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -289,7 +289,7 @@ public:
};
-sal_uInt16 lcl_FindLogicalName(BibConfig* pConfig ,
+static sal_uInt16 lcl_FindLogicalName(BibConfig* pConfig ,
const ::rtl::OUString& rLogicalColumnName)
{
for(sal_uInt16 i = 0; i < COLUMN_COUNT; i++)
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index 554ef62076dd..0ca51d192bf5 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -409,7 +409,7 @@ sal_Bool BibFrameController_Impl::SaveModified(const Reference< form::runtime::X
return bResult;
}
-Window* lcl_GetFocusChild( Window* pParent )
+static Window* lcl_GetFocusChild( Window* pParent )
{
sal_uInt16 nChildren = pParent->GetChildCount();
for( sal_uInt16 nChild = 0; nChild < nChildren; ++nChild)
diff --git a/extensions/source/bibliography/general.cxx b/extensions/source/bibliography/general.cxx
index ca2507638c6d..eccb955e1f0f 100644
--- a/extensions/source/bibliography/general.cxx
+++ b/extensions/source/bibliography/general.cxx
@@ -65,7 +65,7 @@ using namespace ::rtl;
#define C2S(cChar) String::CreateFromAscii(cChar)
#define DISTANCE_CONTROL_TO_FIXEDTEXT 5
-::Point lcl_MovePoint(const FixedText& rFixedText)
+static ::Point lcl_MovePoint(const FixedText& rFixedText)
{
::Point aRet(rFixedText.GetPosPixel());
aRet.X() += rFixedText.GetSizePixel().Width();
@@ -74,7 +74,7 @@ using namespace ::rtl;
}
//-----------------------------------------------------------------------------
-OUString lcl_GetColumnName( const Mapping* pMapping, sal_uInt16 nIndexPos )
+static OUString lcl_GetColumnName( const Mapping* pMapping, sal_uInt16 nIndexPos )
{
BibConfig* pBibConfig = BibModul::GetConfig();
OUString sRet = pBibConfig->GetDefColumnName(nIndexPos);
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 2770906c3f1a..39658f181d09 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -840,7 +840,7 @@ sal_Bool SAL_CALL
return bRes;
}
-void lcl_SequenceRemoveElementAt(
+static void lcl_SequenceRemoveElementAt(
uno::Sequence< uno::Reference< XDictionaryEntry > >& rEntries, int nPos )
{
//TODO: helper for SequenceRemoveElementAt available?
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx
index 37af9e9b1909..856866165b06 100644
--- a/linguistic/source/lngopt.cxx
+++ b/linguistic/source/lngopt.cxx
@@ -142,7 +142,7 @@ OUString LinguOptions::GetName( sal_Int32 nWID )
//! map must be sorted by first entry in alphabetical increasing order.
-const SfxItemPropertyMapEntry* lcl_GetLinguProps()
+static const SfxItemPropertyMapEntry* lcl_GetLinguProps()
{
static const SfxItemPropertyMapEntry aLinguProps[] =
{
diff --git a/oox/source/export/SchXMLSeriesHelper.cxx b/oox/source/export/SchXMLSeriesHelper.cxx
index 4f59040f8a81..0d5b034ad31b 100644
--- a/oox/source/export/SchXMLSeriesHelper.cxx
+++ b/oox/source/export/SchXMLSeriesHelper.cxx
@@ -100,7 +100,7 @@ using ::rtl::OUString;
return aRet;
}
-uno::Reference< chart2::XChartType > lcl_getChartTypeOfSeries(
+static uno::Reference< chart2::XChartType > lcl_getChartTypeOfSeries(
const uno::Reference< chart2::XDiagram >& xDiagram
, const Reference< chart2::XDataSeries >& xSeries )
{
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 279aeba07630..8a46d0a29cd2 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -230,7 +230,7 @@ namespace
}
// -----------------------------------------------------------------------------
-void lcl_getReportControlFormat(const Sequence< PropertyValue >& aArgs,
+static void lcl_getReportControlFormat(const Sequence< PropertyValue >& aArgs,
ODesignView* _pView,
uno::Reference< awt::XWindow>& _xWindow,
::std::vector< uno::Reference< uno::XInterface > >& _rControlsFormats)
@@ -2298,7 +2298,7 @@ void SAL_CALL OReportController::disposing( const lang::EventObject& Source ) th
}
// -----------------------------------------------------------------------------
-sal_uInt16 lcl_getNonVisbleGroupsBefore( const uno::Reference< report::XGroups>& _xGroups
+static sal_uInt16 lcl_getNonVisbleGroupsBefore( const uno::Reference< report::XGroups>& _xGroups
,sal_Int32 _nGroupPos
,::std::mem_fun_t<sal_Bool,OGroupHelper>&_pGroupMemberFunction)
{
diff --git a/rsc/source/prj/gui.cxx b/rsc/source/prj/gui.cxx
index b3a3e88ed941..2c7ff3c29426 100644
--- a/rsc/source/prj/gui.cxx
+++ b/rsc/source/prj/gui.cxx
@@ -40,7 +40,7 @@ static RscCompiler * pRscCompiler = NULL;
delete pRscCompiler;
}
-RscVerbosity lcl_determineVerbosity( int argc, char ** argv )
+static RscVerbosity lcl_determineVerbosity( int argc, char ** argv )
{
for ( int i = 0; i < argc; ++i )
{
diff --git a/sal/rtl/source/math.cxx b/sal/rtl/source/math.cxx
index 67b3a513787c..a6f05b94cd8e 100644
--- a/sal/rtl/source/math.cxx
+++ b/sal/rtl/source/math.cxx
@@ -78,7 +78,7 @@ static double getN10Exp( int nExp )
}
/** Approximation algorithm for erf for 0 < x < 0.65. */
-void lcl_Erf0065( double x, double& fVal )
+static void lcl_Erf0065( double x, double& fVal )
{
static const double pn[] = {
1.12837916709551256,
@@ -107,7 +107,7 @@ void lcl_Erf0065( double x, double& fVal )
}
/** Approximation algorithm for erfc for 0.65 < x < 6.0. */
-void lcl_Erfc0600( double x, double& fVal )
+static void lcl_Erfc0600( double x, double& fVal )
{
double fPSum = 0.0;
double fQSum = 0.0;
@@ -172,7 +172,7 @@ void lcl_Erfc0600( double x, double& fVal )
/** Approximation algorithm for erfc for 6.0 < x < 26.54 (but used for all
x > 6.0). */
-void lcl_Erfc2654( double x, double& fVal )
+static void lcl_Erfc2654( double x, double& fVal )
{
static const double pn[] = {
5.64189583547756078E-1,
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index cdd6ed123f93..b075bafe0148 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -1176,7 +1176,7 @@ double GetZw( double fZins, double fZzr, double fRmz, double fBw, sal_Int32 nF )
//-------
// COUPPCD: find last coupon date before settlement (can be equal to settlement)
-void lcl_GetCouppcd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq )
+static void lcl_GetCouppcd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq )
throw( lang::IllegalArgumentException )
{
rDate = rMat;
@@ -1201,7 +1201,7 @@ double GetCouppcd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_I
//-------
// COUPNCD: find first coupon date after settlement (is never equal to settlement)
-void lcl_GetCoupncd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq )
+static void lcl_GetCoupncd( ScaDate& rDate, const ScaDate& rSettle, const ScaDate& rMat, sal_Int32 nFreq )
throw( lang::IllegalArgumentException )
{
rDate = rMat;
diff --git a/scaddins/source/analysis/financial.cxx b/scaddins/source/analysis/financial.cxx
index 14415dde68ec..eb1cac59a372 100644
--- a/scaddins/source/analysis/financial.cxx
+++ b/scaddins/source/analysis/financial.cxx
@@ -455,7 +455,7 @@ double SAL_CALL AnalysisAddIn::getOddlyield( constREFXPS& xOpt,
#define D_(i) (*rDates.Get(i))
/** Calculates the resulting amount for the passed interest rate and the given XIRR parameters. */
-double lcl_sca_XirrResult( const ScaDoubleList& rValues, const ScaDoubleList& rDates, double fRate )
+static double lcl_sca_XirrResult( const ScaDoubleList& rValues, const ScaDoubleList& rDates, double fRate )
{
/* V_0 ... V_n = input values.
D_0 ... D_n = input dates.
@@ -477,7 +477,7 @@ double lcl_sca_XirrResult( const ScaDoubleList& rValues, const ScaDoubleList& rD
}
/** Calculates the first derivation of lcl_sca_XirrResult(). */
-double lcl_sca_XirrResult_Deriv1( const ScaDoubleList& rValues, const ScaDoubleList& rDates, double fRate )
+static double lcl_sca_XirrResult_Deriv1( const ScaDoubleList& rValues, const ScaDoubleList& rDates, double fRate )
{
/* V_0 ... V_n = input values.
D_0 ... D_n = input dates.
diff --git a/sccomp/source/solver/solver.cxx b/sccomp/source/solver/solver.cxx
index b04f1a1ecc0d..fa506953d3d4 100644
--- a/sccomp/source/solver/solver.cxx
+++ b/sccomp/source/solver/solver.cxx
@@ -71,7 +71,7 @@ using ::rtl::OUString;
static ResMgr* pSolverResMgr = NULL;
-OUString lcl_GetResourceString( sal_uInt32 nId )
+static OUString lcl_GetResourceString( sal_uInt32 nId )
{
if (!pSolverResMgr)
pSolverResMgr = ResMgr::CreateResMgr("solver");
@@ -123,7 +123,7 @@ typedef boost::unordered_map< table::CellAddress, std::vector<double>, ScSolverC
// -----------------------------------------------------------------------
-uno::Reference<table::XCell> lcl_GetCell( const uno::Reference<sheet::XSpreadsheetDocument>& xDoc,
+static uno::Reference<table::XCell> lcl_GetCell( const uno::Reference<sheet::XSpreadsheetDocument>& xDoc,
const table::CellAddress& rPos )
{
uno::Reference<container::XIndexAccess> xSheets( xDoc->getSheets(), uno::UNO_QUERY );
@@ -131,13 +131,13 @@ uno::Reference<table::XCell> lcl_GetCell( const uno::Reference<sheet::XSpreadshe
return xSheet->getCellByPosition( rPos.Column, rPos.Row );
}
-void lcl_SetValue( const uno::Reference<sheet::XSpreadsheetDocument>& xDoc,
+static void lcl_SetValue( const uno::Reference<sheet::XSpreadsheetDocument>& xDoc,
const table::CellAddress& rPos, double fValue )
{
lcl_GetCell( xDoc, rPos )->setValue( fValue );
}
-double lcl_GetValue( const uno::Reference<sheet::XSpreadsheetDocument>& xDoc,
+static double lcl_GetValue( const uno::Reference<sheet::XSpreadsheetDocument>& xDoc,
const table::CellAddress& rPos )
{
return lcl_GetCell( xDoc, rPos )->getValue();
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index ab8b0e5e82c6..50a3466ed350 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -127,7 +127,7 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc
|*
\************************************************************************/
-void lcl_IterateBookmarkPages( SdDrawDocument &rDoc, SdDrawDocument* pBookmarkDoc,
+static void lcl_IterateBookmarkPages( SdDrawDocument &rDoc, SdDrawDocument* pBookmarkDoc,
const std::vector<rtl::OUString> &rBookmarkList, sal_uInt16 nBMSdPageCount,
InsertBookmarkAsPage_FindDuplicateLayouts& rPageIterator )
{
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx
index 8653fc6f546d..6e23f76e5803 100644
--- a/sd/source/ui/app/sdxfer.cxx
+++ b/sd/source/ui/app/sdxfer.cxx
@@ -388,7 +388,7 @@ static sal_Bool lcl_HasOnlyControls( SdrModel* pModel )
// -----------------------------------------------------------------------------
-bool lcl_HasOnlyOneTable( SdrModel* pModel )
+static bool lcl_HasOnlyOneTable( SdrModel* pModel )
{
if ( pModel )
{
diff --git a/sd/source/ui/dlg/prntopts.cxx b/sd/source/ui/dlg/prntopts.cxx
index ed7976a53f12..1f67940fb587 100644
--- a/sd/source/ui/dlg/prntopts.cxx
+++ b/sd/source/ui/dlg/prntopts.cxx
@@ -258,7 +258,7 @@ void SdPrintOptions::updateControls()
aCbxPagename.Enable( !aRbtBooklet.IsChecked() && (aCbxDraw.IsChecked() || aCbxNotes.IsChecked() || aCbxOutline.IsChecked()) );
}
-void lcl_MoveRB_Impl(Window& rBtn, long nXDiff)
+static void lcl_MoveRB_Impl(Window& rBtn, long nXDiff)
{
Point aPos(rBtn.GetPosPixel());
aPos.X() -= nXDiff;
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx
index c0f468cda2a3..5dda9c76355e 100644
--- a/sd/source/ui/unoidl/unoobj.cxx
+++ b/sd/source/ui/unoidl/unoobj.cxx
@@ -171,7 +171,7 @@ static SdTypesCache gImplTypesCache;
{ 0,0,0,0,0,0}
- const SfxItemPropertyMapEntry* lcl_GetImpress_SdXShapePropertyGraphicMap_Impl()
+ static const SfxItemPropertyMapEntry* lcl_GetImpress_SdXShapePropertyGraphicMap_Impl()
{
static const SfxItemPropertyMapEntry aImpress_SdXShapePropertyGraphicMap_Impl[] =
@@ -182,7 +182,7 @@ static SdTypesCache gImplTypesCache;
return aImpress_SdXShapePropertyGraphicMap_Impl;
}
- const SfxItemPropertyMapEntry* lcl_GetImpress_SdXShapePropertySimpleMap_Impl()
+ static const SfxItemPropertyMapEntry* lcl_GetImpress_SdXShapePropertySimpleMap_Impl()
{
static const SfxItemPropertyMapEntry aImpress_SdXShapePropertySimpleMap_Impl[] =
@@ -199,7 +199,7 @@ static SdTypesCache gImplTypesCache;
{ MAP_CHAR_LEN("NavigationOrder"), WID_NAVORDER, &::getCppuType((const sal_Int32*)0), 0, 0},\
{ 0,0,0,0,0,0}
- const SfxItemPropertyMapEntry* lcl_GetDraw_SdXShapePropertySimpleMap_Impl()
+ static const SfxItemPropertyMapEntry* lcl_GetDraw_SdXShapePropertySimpleMap_Impl()
{
static const SfxItemPropertyMapEntry aDraw_SdXShapePropertyMap_Impl[] =
{
@@ -207,7 +207,7 @@ static SdTypesCache gImplTypesCache;
};
return aDraw_SdXShapePropertyMap_Impl;
}
- const SfxItemPropertyMapEntry* lcl_GetDraw_SdXShapePropertyGraphicMap_Impl()
+ static const SfxItemPropertyMapEntry* lcl_GetDraw_SdXShapePropertyGraphicMap_Impl()
{
static const SfxItemPropertyMapEntry aDraw_SdXShapePropertyGraphicMap_Impl[] =
{
@@ -216,7 +216,7 @@ static SdTypesCache gImplTypesCache;
};
return aDraw_SdXShapePropertyGraphicMap_Impl;
}
- const SfxItemPropertyMapEntry* lcl_ImplGetShapePropertyMap( sal_Bool bImpress, sal_Bool bGraphicObj )
+ static const SfxItemPropertyMapEntry* lcl_ImplGetShapePropertyMap( sal_Bool bImpress, sal_Bool bGraphicObj )
{
const SfxItemPropertyMapEntry* pRet = 0;
if( bImpress )
@@ -236,7 +236,7 @@ static SdTypesCache gImplTypesCache;
return pRet;
}
- const SvxItemPropertySet* lcl_ImplGetShapePropertySet( sal_Bool bImpress, sal_Bool bGraphicObj )
+ static const SvxItemPropertySet* lcl_ImplGetShapePropertySet( sal_Bool bImpress, sal_Bool bGraphicObj )
{
const SvxItemPropertySet* pRet = 0;
if( bImpress )
@@ -267,7 +267,7 @@ static SdTypesCache gImplTypesCache;
}
return pRet;
}
- const SfxItemPropertyMapEntry* lcl_GetEmpty_SdXShapePropertyMap_Impl()
+ static const SfxItemPropertyMapEntry* lcl_GetEmpty_SdXShapePropertyMap_Impl()
{
static SfxItemPropertyMapEntry aEmpty_SdXShapePropertyMap_Impl[] =
{
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 8e360c693d40..09268a375e6c 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -2016,7 +2016,7 @@ long TextWin_Impl::Notify( NotifyEvent& rNEvt )
// -----------------------------------------------------------------------
// remove docking area acceptor from layoutmanager, so it will not layout anything further .-)
-void lcl_disableLayoutOfFrame(const Reference< XFrame >& xFrame)
+static void lcl_disableLayoutOfFrame(const Reference< XFrame >& xFrame)
{
static const ::rtl::OUString PROP_LAYOUT_MANAGER(DEFINE_CONST_UNICODE("LayoutManager"));
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index a9754b4c4630..820ec1408497 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -31,7 +31,7 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::frame;
-void lcl_updateThumbnails (TemplateLocalViewItem *pItem);
+static void lcl_updateThumbnails (TemplateLocalViewItem *pItem);
class FolderFilter_Application
{
@@ -742,7 +742,7 @@ IMPL_LINK(TemplateLocalView, ChangeNameHdl, TemplateView*, pView)
return true;
}
-void lcl_updateThumbnails (TemplateLocalViewItem *pItem)
+static void lcl_updateThumbnails (TemplateLocalViewItem *pItem)
{
pItem->maPreview1.Clear();
pItem->maPreview2.Clear();
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index e501569efdad..e92b7f085205 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -2497,7 +2497,7 @@ IMPL_LINK_INLINE_START( SfxTemplateDialog_Impl, ToolBoxLSelect, ToolBox *, pBox
IMPL_LINK_INLINE_END( SfxTemplateDialog_Impl, ToolBoxLSelect, ToolBox *, pBox )
//-------------------------------------------------------------------------
-::rtl::OUString lcl_GetLabel(uno::Any& rAny)
+static ::rtl::OUString lcl_GetLabel(uno::Any& rAny)
{
::rtl::OUString sRet;
uno::Sequence< beans::PropertyValue >aPropSeq;
diff --git a/sfx2/source/doc/objuno.cxx b/sfx2/source/doc/objuno.cxx
index 4f5c8e194e86..336affb2f2ba 100644
--- a/sfx2/source/doc/objuno.cxx
+++ b/sfx2/source/doc/objuno.cxx
@@ -86,7 +86,7 @@ using namespace ::com::sun::star;
#define PROPERTY_UNBOUND 0
#define PROPERTY_MAYBEVOID ::com::sun::star::beans::PropertyAttribute::MAYBEVOID
-const SfxItemPropertyMapEntry* lcl_GetDocInfoPropertyMap()
+static const SfxItemPropertyMapEntry* lcl_GetDocInfoPropertyMap()
{
static SfxItemPropertyMapEntry aDocInfoPropertyMap_Impl[] =
{
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index a01366b2b480..c79c7795c01e 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -64,11 +64,11 @@ using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::ui::dialogs;
-void lcl_createTemplate(uno::Reference<XComponentLoader> xDesktop, const FILTER_APPLICATION eApp);
+static void lcl_createTemplate(uno::Reference<XComponentLoader> xDesktop, const FILTER_APPLICATION eApp);
-bool lcl_getServiceName (const OUString &rFileURL, OUString &rName );
+static bool lcl_getServiceName (const OUString &rFileURL, OUString &rName );
-std::vector<OUString> lcl_getAllFactoryURLs ();
+static std::vector<OUString> lcl_getAllFactoryURLs ();
// Sort by name in ascending order
class SortView_Name
@@ -1471,7 +1471,7 @@ void SfxTemplateManagerDlg::localSearchMoveTo(sal_uInt16 nMenuId)
SearchUpdateHdl(mpSearchEdit);
}
-bool lcl_getServiceName ( const OUString &rFileURL, OUString &rName )
+static bool lcl_getServiceName ( const OUString &rFileURL, OUString &rName )
{
bool bRet = false;
@@ -1499,7 +1499,7 @@ bool lcl_getServiceName ( const OUString &rFileURL, OUString &rName )
return bRet;
}
-std::vector<OUString> lcl_getAllFactoryURLs ()
+static std::vector<OUString> lcl_getAllFactoryURLs ()
{
SvtModuleOptions aModOpt;
std::vector<OUString> aList;
diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx
index e787c087640a..00c20d4cc3cf 100644
--- a/sot/source/sdstor/stgcache.cxx
+++ b/sot/source/sdstor/stgcache.cxx
@@ -80,7 +80,7 @@ bool StgPage::IsPageGreater( const StgPage *pA, const StgPage *pB )
// The disk cache holds the cached sectors. The sector type differ according
// to their purpose.
-sal_Int32 lcl_GetPageCount( sal_uLong nFileSize, short nPageSize )
+static sal_Int32 lcl_GetPageCount( sal_uLong nFileSize, short nPageSize )
{
// return (nFileSize >= 512) ? (nFileSize - 512) / nPageSize : 0;
// #i61980# reallife: last page may be incomplete, return number of *started* pages