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/core | |
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/core')
-rw-r--r-- | xmloff/source/core/DomBuilderContext.cxx | 8 | ||||
-rw-r--r-- | xmloff/source/core/xmluconv.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/core/DomBuilderContext.cxx b/xmloff/source/core/DomBuilderContext.cxx index a8ce3bea1ea5..7325137330df 100644 --- a/xmloff/source/core/DomBuilderContext.cxx +++ b/xmloff/source/core/DomBuilderContext.cxx @@ -67,8 +67,8 @@ using rtl::OUString; // helper functions; implemented below -Reference<XNode> lcl_createDomInstance(); -Reference<XNode> lcl_createElement( SvXMLImport& rImport, +static Reference<XNode> lcl_createDomInstance(); +static Reference<XNode> lcl_createElement( SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString rLocalName, Reference<XNode> xParent); @@ -193,7 +193,7 @@ void DomBuilderContext::Characters( const OUString& rCharacters ) // helper function implementations // -Reference<XNode> lcl_createDomInstance() +static Reference<XNode> lcl_createDomInstance() { Reference<XComponentContext> xContext = comphelper::getProcessComponentContext(); DBG_ASSERT( xContext.is(), "can't get service factory" ); @@ -203,7 +203,7 @@ Reference<XNode> lcl_createDomInstance() return Reference<XNode>( xBuilder->newDocument(), UNO_QUERY_THROW ); } -Reference<XNode> lcl_createElement( SvXMLImport& rImport, +static Reference<XNode> lcl_createElement( SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString rLocalName, Reference<XNode> xParent) diff --git a/xmloff/source/core/xmluconv.cxx b/xmloff/source/core/xmluconv.cxx index 45e67fb41ad1..7aa93280c769 100644 --- a/xmloff/source/core/xmluconv.cxx +++ b/xmloff/source/core/xmluconv.cxx @@ -264,7 +264,7 @@ sal_Bool SvXMLUnitConverter::convertEnum( return (eTok != XML_TOKEN_INVALID); } -int lcl_gethex( int nChar ) +static int lcl_gethex( int nChar ) { if( nChar >= '0' && nChar <= '9' ) return nChar - '0'; @@ -498,7 +498,7 @@ sal_Bool SvXMLTokenEnumerator::getNextToken( OUString& rToken ) return sal_True; } -bool lcl_getPositions(const OUString& _sValue,OUString& _rContentX,OUString& _rContentY,OUString& _rContentZ) +static bool lcl_getPositions(const OUString& _sValue,OUString& _rContentX,OUString& _rContentY,OUString& _rContentZ) { if(_sValue.isEmpty() || _sValue[0] != '(') return false; |