summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-03 09:59:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-04 00:51:57 +0000
commitc6223049651d6607101ef04271773e478a429c8a (patch)
treef2bfb8c976896009409ae47780c324d3a9b51c77 /editeng
parent242ed97d9a74a08363e1306452bba20f06d673e4 (diff)
V813: Decreased performance
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit.hxx6
-rw-r--r--editeng/source/editeng/impedit2.cxx12
2 files changed, 9 insertions, 9 deletions
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index 0bcaa384de05..bacff3989c16 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -764,14 +764,14 @@ public:
bool IsFormatting() const { return bIsFormatting; }
void SetText(const OUString& rText);
- EditPaM DeleteSelected( EditSelection aEditSelection);
+ EditPaM DeleteSelected(const EditSelection& rEditSelection);
EditPaM InsertText( const EditSelection& rCurEditSelection, sal_Unicode c, bool bOverwrite, bool bIsUserInput = false );
EditPaM InsertText(const EditSelection& aCurEditSelection, const OUString& rStr);
EditPaM AutoCorrect( const EditSelection& rCurEditSelection, sal_Unicode c, bool bOverwrite, vcl::Window* pFrameWin = NULL );
EditPaM DeleteLeftOrRight( const EditSelection& rEditSelection, sal_uInt8 nMode, sal_uInt8 nDelMode = DELMODE_SIMPLE );
- EditPaM InsertParaBreak( EditSelection aEditSelection );
+ EditPaM InsertParaBreak(const EditSelection& rEditSelection);
EditPaM InsertLineBreak(const EditSelection& aEditSelection);
- EditPaM InsertTab( EditSelection aEditSelection );
+ EditPaM InsertTab(const EditSelection& rEditSelection);
EditPaM InsertField(const EditSelection& rCurSel, const SvxFieldItem& rFld);
bool UpdateFields();
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index d294ef377111..3fd9a7000249 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -261,9 +261,9 @@ void ImpEditEngine::InitDoc(bool bKeepParaAttribs)
aEditDoc.GetObject( 0 )->CreateWrongList();
}
-EditPaM ImpEditEngine::DeleteSelected( EditSelection aSel )
+EditPaM ImpEditEngine::DeleteSelected(const EditSelection& rSel)
{
- EditPaM aPaM ( ImpDeleteSelection( aSel ) );
+ EditPaM aPaM (ImpDeleteSelection(rSel));
return aPaM;
}
@@ -2881,9 +2881,9 @@ EditPaM ImpEditEngine::ImpFastInsertParagraph( sal_Int32 nPara )
return EditPaM( pNode, 0 );
}
-EditPaM ImpEditEngine::InsertParaBreak( EditSelection aCurSel )
+EditPaM ImpEditEngine::InsertParaBreak(const EditSelection& rCurSel)
{
- EditPaM aPaM( ImpInsertParaBreak( aCurSel ) );
+ EditPaM aPaM(ImpInsertParaBreak(rCurSel));
if ( aStatus.DoAutoIndenting() )
{
sal_Int32 nPara = aEditDoc.GetPos( aPaM.GetNode() );
@@ -2904,9 +2904,9 @@ EditPaM ImpEditEngine::InsertParaBreak( EditSelection aCurSel )
return aPaM;
}
-EditPaM ImpEditEngine::InsertTab( EditSelection aCurSel )
+EditPaM ImpEditEngine::InsertTab(const EditSelection& rCurSel)
{
- EditPaM aPaM( ImpInsertFeature( aCurSel, SfxVoidItem( EE_FEATURE_TAB ) ) );
+ EditPaM aPaM( ImpInsertFeature(rCurSel, SfxVoidItem(EE_FEATURE_TAB )));
return aPaM;
}