diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-10-12 13:30:30 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-10-12 13:34:48 +0200 |
commit | 190334febe62d56d80489034f0ee3cf59100f6c4 (patch) | |
tree | 4cde37896e4b6a00bc84fbc5e69fbe41a8f8dcb9 /sfx2/source | |
parent | f7a24eff2d40ca30c6f299ab6534393c5c146b95 (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
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objuno.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 10 |
5 files changed, 10 insertions, 10 deletions
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; |