diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-10-11 17:52:52 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-10-12 13:12:04 +0200 |
commit | bd7e427ce5cef0c9c1a9ce8c02cac4ebf5217f2d (patch) | |
tree | 4883f6b3014d68dea54c31f475b355ec9a095ac4 /xmloff/source/style/PageMasterExportPropMapper.cxx | |
parent | d1eee073ebcd2d4a99209bb12ab13a7cafbb5a89 (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: I37ab7e25d1a9fcce2009b8e35535fc1d0b02013b
Diffstat (limited to 'xmloff/source/style/PageMasterExportPropMapper.cxx')
-rw-r--r-- | xmloff/source/style/PageMasterExportPropMapper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/style/PageMasterExportPropMapper.cxx b/xmloff/source/style/PageMasterExportPropMapper.cxx index eedb4a4a9396..3b4db9324b0d 100644 --- a/xmloff/source/style/PageMasterExportPropMapper.cxx +++ b/xmloff/source/style/PageMasterExportPropMapper.cxx @@ -44,7 +44,7 @@ using namespace ::xmloff::token; //______________________________________________________________________________ -inline sal_Bool lcl_HasSameLineWidth( const table::BorderLine2& rLine1, const table::BorderLine2& rLine2 ) +static inline sal_Bool lcl_HasSameLineWidth( const table::BorderLine2& rLine1, const table::BorderLine2& rLine2 ) { return (rLine1.InnerLineWidth == rLine2.InnerLineWidth) && (rLine1.OuterLineWidth == rLine2.OuterLineWidth) && @@ -59,20 +59,20 @@ inline sal_Bool operator==( const table::BorderLine2& rLine1, const table::Borde ( rLine1.LineStyle == rLine2.LineStyle ); } -inline void lcl_RemoveState( XMLPropertyState* pState ) +static inline void lcl_RemoveState( XMLPropertyState* pState ) { pState->mnIndex = -1; pState->maValue.clear(); } -void lcl_RemoveStateIfZero16( XMLPropertyState* pState ) +static void lcl_RemoveStateIfZero16( XMLPropertyState* pState ) { sal_Int16 nValue = sal_Int16(); if( (pState->maValue >>= nValue) && !nValue ) lcl_RemoveState( pState ); } -void lcl_AddState(::std::vector< XMLPropertyState >& rPropState, sal_Int32 nIndex, const rtl::OUString& rProperty, uno::Reference< beans::XPropertySet >& xProps) +static void lcl_AddState(::std::vector< XMLPropertyState >& rPropState, sal_Int32 nIndex, const rtl::OUString& rProperty, uno::Reference< beans::XPropertySet >& xProps) { if(::cppu::any2bool(xProps->getPropertyValue(rProperty))) rPropState.push_back(XMLPropertyState (nIndex, cppu::bool2any(sal_True))); |