summaryrefslogtreecommitdiff
path: root/shell/source/win32/ooofilereader
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-04 09:28:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-04 13:07:40 +0000
commit32f95a35514701ed16413125b440c16d90f52b4a (patch)
tree25ac5edca15ee02bc937ee47116c2197559da4cd /shell/source/win32/ooofilereader
parent0f98299f7aa44bbb55c1bfeddca7799f727d14b0 (diff)
V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
Diffstat (limited to 'shell/source/win32/ooofilereader')
-rw-r--r--shell/source/win32/ooofilereader/autostyletag.cxx2
-rw-r--r--shell/source/win32/ooofilereader/autostyletag.hxx2
-rw-r--r--shell/source/win32/ooofilereader/metainforeader.cxx10
3 files changed, 7 insertions, 7 deletions
diff --git a/shell/source/win32/ooofilereader/autostyletag.cxx b/shell/source/win32/ooofilereader/autostyletag.cxx
index d6c3c149b40e..f2220d91549a 100644
--- a/shell/source/win32/ooofilereader/autostyletag.cxx
+++ b/shell/source/win32/ooofilereader/autostyletag.cxx
@@ -77,7 +77,7 @@ void CAutoStyleTag::setStyle( ::std::wstring const & Style )
m_CurrentStyleLocalePair.first = Style;
}
-void CAutoStyleTag::setLocale( LocaleSet_t Locale )
+void CAutoStyleTag::setLocale(const LocaleSet_t& Locale)
{
m_CurrentStyleLocalePair.second = Locale;
}
diff --git a/shell/source/win32/ooofilereader/autostyletag.hxx b/shell/source/win32/ooofilereader/autostyletag.hxx
index 3982b0c48758..6b2140f34ec7 100644
--- a/shell/source/win32/ooofilereader/autostyletag.hxx
+++ b/shell/source/win32/ooofilereader/autostyletag.hxx
@@ -48,7 +48,7 @@ class CAutoStyleTag : public ITag
virtual ::std::wstring const getTagAttribute( ::std::wstring const & /*attrname*/ ){ return ::std::wstring() ; };
void setStyle( ::std::wstring const & Style );
- void setLocale( LocaleSet_t Locale );
+ void setLocale(const LocaleSet_t& Locale);
void clearStyleLocalePair( void );
inline StyleLocalePair_t getStyleLocalePair() const{ return m_CurrentStyleLocalePair; };
inline bool isFull() const
diff --git a/shell/source/win32/ooofilereader/metainforeader.cxx b/shell/source/win32/ooofilereader/metainforeader.cxx
index cc3fdd87545d..be0c7ee5576e 100644
--- a/shell/source/win32/ooofilereader/metainforeader.cxx
+++ b/shell/source/win32/ooofilereader/metainforeader.cxx
@@ -132,7 +132,7 @@ CMetaInfoReader::~CMetaInfoReader( void )
@param TagName
the name of the tag that will be retrieve.
*/
-bool CMetaInfoReader::hasTag( std::wstring TagName ) const
+bool CMetaInfoReader::hasTag(const std::wstring& TagName) const
{
return ( m_AllMetaInfo.find(TagName) != m_AllMetaInfo.end());
}
@@ -157,7 +157,7 @@ std::wstring CMetaInfoReader::getTagData( const std::wstring& TagName)
@param AttributeName
the name of the attribute.
*/
-bool CMetaInfoReader::hasTagAttribute( const std::wstring TagName, std::wstring AttributeName)
+bool CMetaInfoReader::hasTagAttribute(const std::wstring& TagName, const std::wstring& AttributeName)
{
return ( m_AllMetaInfo[TagName].second.find( AttributeName) != m_AllMetaInfo[TagName].second.end() );
}
@@ -169,9 +169,9 @@ bool CMetaInfoReader::hasTagAttribute( const std::wstring TagName, std::wstring
@param AttributeName
the name of the attribute.
*/
-std::wstring CMetaInfoReader::getTagAttribute( const std::wstring TagName, std::wstring AttributeName)
+std::wstring CMetaInfoReader::getTagAttribute(const std::wstring& TagName, const std::wstring& AttributeName)
{
- if ( hasTagAttribute( TagName, AttributeName ) )
+ if (hasTagAttribute(TagName, AttributeName))
return m_AllMetaInfo[ TagName ].second[AttributeName];
else
return EMPTY_STRING;
@@ -181,7 +181,7 @@ std::wstring CMetaInfoReader::getTagAttribute( const std::wstring TagName, std:
*/
const LocaleSet_t EN_US_LOCALE( ::std::make_pair( ::std::wstring( L"en" ), ::std::wstring( L"US" )));
-bool isValidLocale ( ::std::wstring Locale )
+bool isValidLocale(const ::std::wstring& Locale)
{
return ( Locale.length() == 5 );
}