From 7e9df2ba484a29c74ee5ccd04972712ecb98802e Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sat, 1 Mar 2014 22:25:58 +0100 Subject: Avoid temporaries just used as return value Change-Id: I4b7fc7103cac3acd5561754fc15b7f7b40c041fe --- editeng/source/editeng/editdoc.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'editeng') 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 ) -- cgit