summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdoc.cxx6
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 )