diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-01 22:25:58 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-02 20:18:00 +0100 |
commit | 7e9df2ba484a29c74ee5ccd04972712ecb98802e (patch) | |
tree | bc56d88cccb0ae4156a3b32d54d7d105ca561dc0 /editeng | |
parent | 4f27cf97e6216994a971c2748bb544e85b023ff3 (diff) |
Avoid temporaries just used as return value
Change-Id: I4b7fc7103cac3acd5561754fc15b7f7b40c041fe
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index d98773432160..ebbd68d3735d 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -2194,8 +2194,7 @@ EditPaM EditDoc::Clear() SetModified(false); - EditPaM aPaM( pNode, 0 ); - return aPaM; + return EditPaM( pNode, 0 ); } void EditDoc::ClearSpellErrors() @@ -2231,8 +2230,7 @@ EditPaM EditDoc::RemoveText() SetModified(true); - EditPaM aPaM( pNode, 0 ); - return aPaM; + return EditPaM( pNode, 0 ); } EditPaM EditDoc::InsertText( EditPaM aPaM, const OUString& rStr ) |