summaryrefslogtreecommitdiff
path: root/vcl/source/edit/textundo.cxx
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2014-11-15 11:41:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-11-18 11:32:19 +0000
commit63d8977f9fb0618d36dc8e0ee2f8068b1af92fe6 (patch)
treee70c5ebfabae4b0ca17f9f1ac31045755186641d /vcl/source/edit/textundo.cxx
parentdf9efbd53d148c713f7d5c391ac06d873b9b4cc1 (diff)
fdo#75757 remove inheritance from std::vector
For TextDoc, also removing ToolsList Change-Id: Id818f61f562317ce106414937253f1748a33315a Reviewed-on: https://gerrit.libreoffice.org/12454 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/edit/textundo.cxx')
-rw-r--r--vcl/source/edit/textundo.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx
index 57a721ed2b33..207bb1959df3 100644
--- a/vcl/source/edit/textundo.cxx
+++ b/vcl/source/edit/textundo.cxx
@@ -173,20 +173,20 @@ void TextUndoDelPara::Undo()
void TextUndoDelPara::Redo()
{
// pNode is not valid anymore in case an Undo joined paragraphs
- mpNode = GetDoc()->GetNodes().GetObject( mnPara );
+ mpNode = GetDoc()->GetNode( mnPara );
delete GetTEParaPortions()->GetObject( mnPara );
GetTEParaPortions()->Remove( mnPara );
// do not delete Node because of Undo!
- GetDoc()->GetNodes().Remove( mnPara );
+ GetDoc()->RemoveNode( mnPara );
GetTextEngine()->ImpParagraphRemoved( mnPara );
mbDelObject = true; // belongs again to the Undo
- sal_uLong nParas = GetDoc()->GetNodes().Count();
+ sal_uLong nParas = GetDoc()->CountNodes();
sal_uLong n = mnPara < nParas ? mnPara : (nParas-1);
- TextNode* pN = GetDoc()->GetNodes().GetObject( n );
+ TextNode* pN = GetDoc()->GetNode( n );
TextPaM aPaM( n, pN->GetText().getLength() );
SetSelection( aPaM );
}