diff options
Diffstat (limited to 'sc/source/core/data/documen8.cxx')
-rw-r--r-- | sc/source/core/data/documen8.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index d7fff9711e0e..5068656aab39 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -843,13 +843,12 @@ void ScDocument::UpdateExternalRefLinks(weld::Window* pWin) INetURLObject aUrl(aFile,INetURLObject::EncodeMechanism::WasEncoded); aFile = aUrl.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous); - OUStringBuffer aBuf; - aBuf.append(ScResId(SCSTR_EXTDOC_NOT_LOADED)); - aBuf.append("\n\n"); - aBuf.append(aFile); + OUString sMessage = ScResId(SCSTR_EXTDOC_NOT_LOADED) + + "\n\n" + + aFile; std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(pWin, VclMessageType::Warning, VclButtonsType::Ok, - aBuf.makeStringAndClear())); + sMessage)); xBox->run(); } |