summaryrefslogtreecommitdiff
path: root/sw/inc/pagedesc.hxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-06-18 12:56:29 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-23 15:42:44 +0100
commit78378af1d404baf78f42930a29dbf8eae22bbe80 (patch)
tree6d41d472655673eb8facedb3ee7a7b5d3ed6914a /sw/inc/pagedesc.hxx
parent9bc07cce52470f08872bba75411d88543c4cbd0f (diff)
fdo#76260 - the wrong way to get a 10% win with an N^3 operation.
Micro optimising the inner-loop is never the right way; on the other hand this is 10% of load time and is waste. Change-Id: Ie275be53e30834cbb6576b8e7580c16d2e47bf16
Diffstat (limited to 'sw/inc/pagedesc.hxx')
-rw-r--r--sw/inc/pagedesc.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/inc/pagedesc.hxx b/sw/inc/pagedesc.hxx
index a15a851181a9..58ab7a802f64 100644
--- a/sw/inc/pagedesc.hxx
+++ b/sw/inc/pagedesc.hxx
@@ -162,6 +162,7 @@ protected:
public:
OUString GetName() const { return aDescName; }
+ bool HasName( const OUString& rThisName ) { return aDescName == rThisName; }
void SetName( const OUString& rNewName ) { aDescName = rNewName; }
bool GetLandscape() const { return bLandscape; }