summaryrefslogtreecommitdiff
path: root/shell/inc
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/inc
parent0f98299f7aa44bbb55c1bfeddca7799f727d14b0 (diff)
V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
Diffstat (limited to 'shell/inc')
-rw-r--r--shell/inc/internal/metainforeader.hxx8
-rw-r--r--shell/inc/internal/thumbviewer.hxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/shell/inc/internal/metainforeader.hxx b/shell/inc/internal/metainforeader.hxx
index b9f86fd1756b..047bf77683c0 100644
--- a/shell/inc/internal/metainforeader.hxx
+++ b/shell/inc/internal/metainforeader.hxx
@@ -43,7 +43,7 @@ public:
@param TagName
the name of the tag that will be retrieved.
*/
- bool hasTag(std::wstring TagName) const;
+ bool hasTag(const std::wstring& TagName) const;
/** Get a specific tag content, compound tags will be returned as comma separated list.
@@ -51,7 +51,7 @@ public:
@param TagName
the name of the tag that will be retrieved.
*/
- std::wstring getTagData( const std::wstring& TagName);
+ std::wstring getTagData(const std::wstring& TagName);
/** check if the a tag has the specific attribute.
@@ -60,7 +60,7 @@ public:
@param AttributeName
the name of the attribute.
*/
- bool hasTagAttribute( const std::wstring TagName, std::wstring AttributeName);
+ bool hasTagAttribute(const std::wstring& TagName, const std::wstring& AttributeName);
/** Get a specific attribute content.
@@ -69,7 +69,7 @@ public:
@param AttributeName
the name of the attribute.
*/
- std::wstring getTagAttribute( const std::wstring TagName, std::wstring AttributeName);
+ std::wstring getTagAttribute(const std::wstring& TagName, const std::wstring& AttributeName);
/** Get the default language of the whole document.
*/
diff --git a/shell/inc/internal/thumbviewer.hxx b/shell/inc/internal/thumbviewer.hxx
index b6f9ea4b0916..8a3bbed166af 100644
--- a/shell/inc/internal/thumbviewer.hxx
+++ b/shell/inc/internal/thumbviewer.hxx
@@ -98,7 +98,7 @@ public:
/* [out] */ LPOLESTR __RPC_FAR *ppszFileName);
private:
- Gdiplus::Rect CalcScaledAspectRatio(Gdiplus::Rect src, Gdiplus::Rect dest);
+ Gdiplus::Rect CalcScaledAspectRatio(const Gdiplus::Rect& src, const Gdiplus::Rect& dest);
private:
long ref_count_;