Kaydet (Commit) e31205f3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

EditUndoRemoveChars::GetStr must return a reference

...as ImpEditEngine::ImpRemoveChars (editeng/source/editeng/impedit2.cxx) calls

  pCurUndo->GetStr() += aStr;

Regression introduced with d5e11f5f "convert
editeng/source/editeng/editundo.hxx from String to OUString."

Change-Id: Iab3dd3b861bca715a90e89e3a63a6f298657367d
üst 8e36027e
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
EditUndoRemoveChars(EditEngine* pEE, const EPaM& rEPaM, const OUString& rStr); EditUndoRemoveChars(EditEngine* pEE, const EPaM& rEPaM, const OUString& rStr);
const EPaM& GetEPaM() { return aEPaM; } const EPaM& GetEPaM() { return aEPaM; }
OUString GetStr() const { return aText; } OUString & GetStr() { return aText; }
virtual void Undo() override; virtual void Undo() override;
virtual void Redo() override; virtual void Redo() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment