summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/apphdl.cxx8
-rw-r--r--sw/source/uibase/app/applab.cxx4
-rw-r--r--sw/source/uibase/app/docsh.cxx6
-rw-r--r--sw/source/uibase/app/docsh2.cxx34
-rw-r--r--sw/source/uibase/app/docshini.cxx2
-rw-r--r--sw/source/uibase/app/docst.cxx34
-rw-r--r--sw/source/uibase/app/swdll.cxx6
-rw-r--r--sw/source/uibase/app/swmodul1.cxx4
-rw-r--r--sw/source/uibase/app/swmodule.cxx4
9 files changed, 51 insertions, 51 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 28c766b3d3b1..9e5ada1b0101 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -309,7 +309,7 @@ SwView* lcl_LoadDoc(SwView* pView, const OUString& rURL)
if(!rURL.isEmpty())
{
SfxStringItem aURL(SID_FILE_NAME, rURL);
- SfxStringItem aTargetFrameName( SID_TARGETNAME, "_blank" );
+ SfxStringItem aTargetFrameName( SID_TARGETNAME, u"_blank"_ustr );
SfxBoolItem aHidden( SID_HIDDEN, true );
SfxStringItem aReferer(SID_REFERER, pView->GetDocShell()->GetTitle());
const SfxPoolItemHolder aResult(
@@ -411,7 +411,7 @@ void SwMailMergeWizardExecutor::ExecuteMailMergeWizard( const SfxItemSet * pArgs
using namespace org::freedesktop::PackageKit;
using namespace svtools;
css::uno::Reference< XSyncDbusSessionHelper > xSyncDbusSessionHelper(SyncDbusSessionHelper::create(comphelper::getProcessComponentContext()));
- const css::uno::Sequence< OUString > vPackages{ "libreoffice-base" };
+ const css::uno::Sequence< OUString > vPackages{ u"libreoffice-base"_ustr };
xSyncDbusSessionHelper->InstallPackageNames(vPackages, OUString());
SolarMutexGuard aGuard;
(void)executeRestartDialog(comphelper::getProcessComponentContext(), nullptr, RESTART_REASON_MAILMERGE_INSTALL);
@@ -484,7 +484,7 @@ void SwMailMergeWizardExecutor::ExecutionFinished()
pDbManager->CommitLastRegistrations();
// Show the toolbar
- m_pView->ShowUIElement("private:resource/toolbar/mailmerge");
+ m_pView->ShowUIElement(u"private:resource/toolbar/mailmerge"_ustr);
// Update Mail Merge controls
const sal_uInt16 slotIds[] = { FN_MAILMERGE_FIRST_ENTRY,
@@ -907,7 +907,7 @@ void SwModule::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
bUpdateFields = false;
if(bUpdateFields)
{
- comphelper::dispatchCommand(".uno:UpdateInputFields", {});
+ comphelper::dispatchCommand(u".uno:UpdateInputFields"_ustr, {});
// Are database fields contained?
// Get all used databases for the first time
diff --git a/sw/source/uibase/app/applab.cxx b/sw/source/uibase/app/applab.cxx
index f440fefe86e1..5fe8816cb079 100644
--- a/sw/source/uibase/app/applab.cxx
+++ b/sw/source/uibase/app/applab.cxx
@@ -334,7 +334,7 @@ void SwModule::InsertLab(SfxRequest& rReq, bool bLabel)
MASTER_LABEL;
aSect.SetLinkFileName(sLinkName);
aSect.SetProtectFlag(true);
- pSh->Insert("."); // Dummytext to allocate the Section
+ pSh->Insert(u"."_ustr); // Dummytext to allocate the Section
pSh->StartOfSection();
pSh->EndOfSection(true); // Select everything in the frame
pSh->InsertSection(aSect);
@@ -372,7 +372,7 @@ void SwModule::InsertLab(SfxRequest& rReq, bool bLabel)
pSh->GotoFly(pFirstFlyFormat->GetName(), FLYCNTTYPE_ALL, false);
if (pSh->IsAnyDatabaseFieldInDoc())
- pSh->GetView().ShowUIElement("private:resource/toolbar/mailmerge");
+ pSh->GetView().ShowUIElement(u"private:resource/toolbar/mailmerge"_ustr);
pSh->EndAllAction();
pSh->DoUndo();
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index 739be04c6de4..6f8673eaff12 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -118,7 +118,7 @@ void SwDocShell::InitInterface_Impl()
}
-SFX_IMPL_OBJECTFACTORY(SwDocShell, SvGlobalName(SO3_SW_CLASSID), "swriter" )
+SFX_IMPL_OBJECTFACTORY(SwDocShell, SvGlobalName(SO3_SW_CLASSID), u"swriter"_ustr )
bool SwDocShell::InsertGeneratedStream(SfxMedium & rMedium,
uno::Reference<text::XTextRange> const& xInsertPosition)
@@ -616,7 +616,7 @@ bool SwDocShell::ConvertTo( SfxMedium& rMedium )
OSL_ENSURE( !xStg->GetError(), "No storage available for storing VBA macros!" );
if ( !xStg->GetError() )
{
- nVBWarning = SaveOrDelMSVBAStorage( static_cast<SfxObjectShell&>(*this), *xStg, bSave, "Macros" );
+ nVBWarning = SaveOrDelMSVBAStorage( static_cast<SfxObjectShell&>(*this), *xStg, bSave, u"Macros"_ustr );
xStg->Commit();
m_xDoc->SetContainsMSVBasic( true );
}
@@ -718,7 +718,7 @@ bool SwDocShell::ConvertTo( SfxMedium& rMedium )
// TODO/MBA: testing
uno::Reference < beans::XPropertySet > xSet( rMedium.GetStorage(), uno::UNO_QUERY );
if ( xSet.is() )
- xSet->setPropertyValue("MediaType", uno::Any( SotExchange::GetFormatMimeType( nSaveClipId ) ) );
+ xSet->setPropertyValue(u"MediaType"_ustr, uno::Any( SotExchange::GetFormatMimeType( nSaveClipId ) ) );
}
catch (const uno::Exception&)
{
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx
index 285ef0a46c0e..ee079554cbe5 100644
--- a/sw/source/uibase/app/docsh2.cxx
+++ b/sw/source/uibase/app/docsh2.cxx
@@ -144,7 +144,7 @@ std::shared_ptr<SfxDocumentInfoDialog> SwDocShell::CreateDocumentInfoDialog(weld
{
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
xDlg->AddFontTabPage();
- xDlg->AddTabPage("writerstats", SwResId(STR_DOC_STAT), pFact->GetTabPageCreatorFunc(RID_SW_TP_DOC_STAT));
+ xDlg->AddTabPage(u"writerstats"_ustr, SwResId(STR_DOC_STAT), pFact->GetTabPageCreatorFunc(RID_SW_TP_DOC_STAT));
}
}
return xDlg;
@@ -252,7 +252,7 @@ void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
case SfxEventHintId::OpenDoc:
{
uno::Sequence< css::uno::Any > aArgs;
- SW_MOD()->CallAutomationApplicationEventSinks( "DocumentChange", aArgs );
+ SW_MOD()->CallAutomationApplicationEventSinks( u"DocumentChange"_ustr, aArgs );
break;
}
default:
@@ -266,7 +266,7 @@ void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
uno::Any aDocument;
aDocument <<= mxAutomationDocumentObject;
uno::Sequence< uno::Any > aArgs{ aDocument };
- SW_MOD()->CallAutomationApplicationEventSinks( "NewDocument", aArgs );
+ SW_MOD()->CallAutomationApplicationEventSinks( u"NewDocument"_ustr, aArgs );
}
break;
case SfxEventHintId::OpenDoc:
@@ -274,7 +274,7 @@ void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
uno::Any aDocument;
aDocument <<= mxAutomationDocumentObject;
uno::Sequence< uno::Any > aArgs{ aDocument };
- SW_MOD()->CallAutomationApplicationEventSinks( "DocumentOpen", aArgs );
+ SW_MOD()->CallAutomationApplicationEventSinks( u"DocumentOpen"_ustr, aArgs );
}
break;
default:
@@ -365,7 +365,7 @@ bool SwDocShell::PrepareClose( bool bUI )
uno::Any(false)
};
- SW_MOD()->CallAutomationApplicationEventSinks( "DocumentBeforeClose", aArgs );
+ SW_MOD()->CallAutomationApplicationEventSinks( u"DocumentBeforeClose"_ustr, aArgs );
// If the Cancel argument was set to True by an event handler, return false.
bool bCancel(false);
@@ -579,7 +579,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
bool bWeb = dynamic_cast< SwWebDocShell *>( this ) != nullptr;
std::shared_ptr<const SfxFilter> pOwnFlt =
SwDocShell::Factory().GetFilterContainer()->
- GetFilter4FilterName("writer8");
+ GetFilter4FilterName(u"writer8"_ustr);
// make sure the default file format is also available
if(bWeb)
@@ -659,8 +659,8 @@ void SwDocShell::Execute(SfxRequest& rReq)
std::shared_ptr<const SfxFilter> pFlt = GetMedium()->GetFilter();
if(!pFlt || pFlt->GetUserData() != pHtmlFlt->GetUserData())
{
- std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(rViewFrame.GetFrameWeld(), "modules/swriter/ui/saveashtmldialog.ui"));
- std::unique_ptr<weld::MessageDialog> xQuery(xBuilder->weld_message_dialog("SaveAsHTMLDialog"));
+ std::unique_ptr<weld::Builder> xBuilder(Application::CreateBuilder(rViewFrame.GetFrameWeld(), u"modules/swriter/ui/saveashtmldialog.ui"_ustr));
+ std::unique_ptr<weld::MessageDialog> xQuery(xBuilder->weld_message_dialog(u"SaveAsHTMLDialog"_ustr));
if (RET_YES == xQuery->run())
bLocalHasName = false;
else
@@ -786,9 +786,9 @@ void SwDocShell::Execute(SfxRequest& rReq)
pStrm->ReadBytes( aSeq.getArray(), aSeq.getLength() );
uno::Sequence< beans::PropertyValue > aArgs{
- comphelper::makePropertyValue("RtfOutline", aSeq)
+ comphelper::makePropertyValue(u"RtfOutline"_ustr, aSeq)
};
- xHelper->executeDispatch( xProv, "SendOutlineToImpress", OUString(), 0, aArgs );
+ xHelper->executeDispatch( xProv, u"SendOutlineToImpress"_ustr, OUString(), 0, aArgs );
}
else
ErrorHandler::HandleError( eErr );
@@ -844,9 +844,9 @@ void SwDocShell::Execute(SfxRequest& rReq)
pStrm->ReadBytes( aSeq.getArray(), aSeq.getLength() );
uno::Sequence< beans::PropertyValue > aArgs{
- comphelper::makePropertyValue("RtfOutline", aSeq)
+ comphelper::makePropertyValue(u"RtfOutline"_ustr, aSeq)
};
- xHelper->executeDispatch( xProv, "SendOutlineToImpress", OUString(), 0, aArgs );
+ xHelper->executeDispatch( xProv, u"SendOutlineToImpress"_ustr, OUString(), 0, aArgs );
}
else
{
@@ -989,7 +989,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
{
// for Global-documents we now only offer the current one.
pFlt = SwGlobalDocShell::Factory().GetFilterContainer()->
- GetFilter4Extension( "odm" );
+ GetFilter4Extension( u"odm"_ustr );
pStrId = STR_LOAD_GLOBAL_DOC;
}
@@ -1190,8 +1190,8 @@ void SwDocShell::Execute(SfxRequest& rReq)
if (SfxDispatcher* pDispatch = pViewShell->GetDispatcher())
{
- SfxStringItem aApp(SID_DOC_SERVICE, "com.sun.star.text.TextDocument");
- SfxStringItem aTarget(SID_TARGETNAME, "_blank");
+ SfxStringItem aApp(SID_DOC_SERVICE, u"com.sun.star.text.TextDocument"_ustr);
+ SfxStringItem aTarget(SID_TARGETNAME, u"_blank"_ustr);
pDispatch->ExecuteList(SID_OPENDOC, SfxCallMode::API|SfxCallMode::SYNCHRON, { &aApp, &aTarget });
}
}
@@ -1286,7 +1286,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
SfxBindings& rBindings( pViewShell->GetViewFrame().GetBindings() );
if ( SfxNotebookBar::IsActive() )
- sfx2::SfxNotebookBar::ExecMethod( rBindings, pFile ? pFile->GetValue() : "" );
+ sfx2::SfxNotebookBar::ExecMethod( rBindings, pFile ? pFile->GetValue() : u""_ustr );
else
{
sfx2::SfxNotebookBar::CloseMethod( rBindings );
@@ -1629,7 +1629,7 @@ ErrCodeMsg SwDocShell::LoadStylesFromFile(const OUString& rURL, SwgReaderOption&
try
{
uno::Reference< beans::XPropertySet > xProps( xStorage, uno::UNO_QUERY_THROW );
- xProps->getPropertyValue( "MediaType" );
+ xProps->getPropertyValue( u"MediaType"_ustr );
bImport = true;
}
catch (const uno::Exception&)
diff --git a/sw/source/uibase/app/docshini.cxx b/sw/source/uibase/app/docshini.cxx
index a952e0224690..5d54d9c1af1c 100644
--- a/sw/source/uibase/app/docshini.cxx
+++ b/sw/source/uibase/app/docshini.cxx
@@ -584,7 +584,7 @@ bool SwDocShell::LoadFrom( SfxMedium& rMedium )
do { // middle check loop
ErrCodeMsg nErr = ERR_SWG_READ_ERROR;
- OUString aStreamName = "styles.xml";
+ OUString aStreamName = u"styles.xml"_ustr;
uno::Reference < container::XNameAccess > xAccess = rMedium.GetStorage();
if ( xAccess->hasByName( aStreamName ) && rMedium.GetStorage()->isStreamElement( aStreamName ) )
{
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index 2b2c1b340403..4df37c96d590 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -119,7 +119,7 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
{
// determine current template to every family
OUString aName;
- SwTableAutoFormat aTableAutoFormat("dummy"); // needed to check if can take a table auto format at current cursor position
+ SwTableAutoFormat aTableAutoFormat(u"dummy"_ustr); // needed to check if can take a table auto format at current cursor position
switch (nWhich)
{
case SID_STYLE_APPLY:
@@ -362,7 +362,7 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq )
uno::Reference< beans::XPropertySet > xInfo;
xStyles->getByName( pNameItem->GetValue() ) >>= xInfo;
OUString aUIName;
- xInfo->getPropertyValue("DisplayName") >>= aUIName;
+ xInfo->getPropertyValue(u"DisplayName"_ustr) >>= aUIName;
if ( !aUIName.isEmpty() )
rReq.AppendItem( SfxStringItem( SID_STYLE_APPLY, aUIName ) );
}
@@ -514,7 +514,7 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq )
{
case SID_STYLE_EDIT:
case SID_STYLE_FONT:
- Edit(rReq.GetFrameWeld(), aParam, {}, nFamily, nMask, false, (nSlot == SID_STYLE_FONT) ? "font" : OUString(), pActShell);
+ Edit(rReq.GetFrameWeld(), aParam, {}, nFamily, nMask, false, (nSlot == SID_STYLE_FONT) ? u"font"_ustr : OUString(), pActShell);
break;
case SID_STYLE_DELETE:
Delete(aParam, nFamily);
@@ -654,7 +654,7 @@ IMPL_LINK_NOARG(ApplyStyle, ApplyHdl, LinkParamNone*, void)
if (const SfxGrabBagItem* pGrabBagItem = aTmpSet.GetItemIfSet(SID_ATTR_CHAR_GRABBAG))
{
bool bGutterAtTop{};
- auto it = pGrabBagItem->GetGrabBag().find("GutterAtTop");
+ auto it = pGrabBagItem->GetGrabBag().find(u"GutterAtTop"_ustr);
if (it != pGrabBagItem->GetGrabBag().end())
{
it->second >>= bGutterAtTop;
@@ -731,20 +731,20 @@ void syncEndnoteOrientation(const uno::Reference< style::XStyleFamiliesSupplier
if (!xStyleFamilies.is())
return;
- uno::Reference<container::XNameAccess> xPageStyles(xStyleFamilies->getByName("PageStyles"),
+ uno::Reference<container::XNameAccess> xPageStyles(xStyleFamilies->getByName(u"PageStyles"_ustr),
uno::UNO_QUERY);
if (!xPageStyles.is())
return;
- uno::Reference<css::style::XStyle> xEndnotePageStyle(xPageStyles->getByName("Endnote"),
+ uno::Reference<css::style::XStyle> xEndnotePageStyle(xPageStyles->getByName(u"Endnote"_ustr),
uno::UNO_QUERY);
if (!xEndnotePageStyle.is())
return;
// Language-independent name of the "Default Style" is "Standard"
- uno::Reference<css::style::XStyle> xDefaultPageStyle(xPageStyles->getByName("Standard"),
+ uno::Reference<css::style::XStyle> xDefaultPageStyle(xPageStyles->getByName(u"Standard"_ustr),
uno::UNO_QUERY);
if (!xDefaultPageStyle.is())
return;
@@ -752,8 +752,8 @@ void syncEndnoteOrientation(const uno::Reference< style::XStyleFamiliesSupplier
if (xEndnotePageStyle->isUserDefined() || !xEndnotePageStyle->isInUse())
return;
- uno::Reference<beans::XPropertySet> xEndnotePagePropSet(xPageStyles->getByName("Endnote"), uno::UNO_QUERY);
- uno::Reference<beans::XPropertySet> xDefaultPagePropSet(xPageStyles->getByName("Standard"), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xEndnotePagePropSet(xPageStyles->getByName(u"Endnote"_ustr), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xDefaultPagePropSet(xPageStyles->getByName(u"Standard"_ustr), uno::UNO_QUERY);
if (!xEndnotePagePropSet.is() || !xDefaultPagePropSet.is())
{
@@ -762,19 +762,19 @@ void syncEndnoteOrientation(const uno::Reference< style::XStyleFamiliesSupplier
}
auto const bIsDefLandScape = *o3tl::doAccess<bool>(
- xDefaultPagePropSet->getPropertyValue("IsLandscape"));
+ xDefaultPagePropSet->getPropertyValue(u"IsLandscape"_ustr));
auto const bIsEndLandScape = *o3tl::doAccess<bool>(
- xEndnotePagePropSet->getPropertyValue("IsLandscape"));
+ xEndnotePagePropSet->getPropertyValue(u"IsLandscape"_ustr));
if (bIsDefLandScape == bIsEndLandScape)
return;
- auto const nWidth = xEndnotePagePropSet->getPropertyValue("Width");
- auto const nHeight = xEndnotePagePropSet->getPropertyValue("Height");
+ auto const nWidth = xEndnotePagePropSet->getPropertyValue(u"Width"_ustr);
+ auto const nHeight = xEndnotePagePropSet->getPropertyValue(u"Height"_ustr);
- xEndnotePagePropSet->setPropertyValue("IsLandscape", css::uno::toAny(bIsDefLandScape));
- xEndnotePagePropSet->setPropertyValue("Width", nHeight);
- xEndnotePagePropSet->setPropertyValue("Height", nWidth);
+ xEndnotePagePropSet->setPropertyValue(u"IsLandscape"_ustr, css::uno::toAny(bIsDefLandScape));
+ xEndnotePagePropSet->setPropertyValue(u"Width"_ustr, nHeight);
+ xEndnotePagePropSet->setPropertyValue(u"Height"_ustr, nWidth);
}
}
@@ -950,7 +950,7 @@ void SwDocShell::Edit(
}
bool bGutterAtTop
= GetDoc()->getIDocumentSettingAccess().get(DocumentSettingId::GUTTER_AT_TOP);
- oGrabBag->GetGrabBag()["GutterAtTop"] <<= bGutterAtTop;
+ oGrabBag->GetGrabBag()[u"GutterAtTop"_ustr] <<= bGutterAtTop;
rSet.Put(*oGrabBag);
}
diff --git a/sw/source/uibase/app/swdll.cxx b/sw/source/uibase/app/swdll.cxx
index 10b16d6c1052..ec258cac6dd6 100644
--- a/sw/source/uibase/app/swdll.cxx
+++ b/sw/source/uibase/app/swdll.cxx
@@ -103,12 +103,12 @@ SwDLL::SwDLL()
SwModule* pModule = pUniqueModule.get();
SfxApplication::SetModule(SfxToolsModule::Writer, std::move(pUniqueModule));
- pWDocFact->SetDocumentServiceName("com.sun.star.text.WebDocument");
+ pWDocFact->SetDocumentServiceName(u"com.sun.star.text.WebDocument"_ustr);
if (!xOpt || xOpt->IsWriter())
{
- pGlobDocFact->SetDocumentServiceName("com.sun.star.text.GlobalDocument");
- pDocFact->SetDocumentServiceName("com.sun.star.text.TextDocument");
+ pGlobDocFact->SetDocumentServiceName(u"com.sun.star.text.GlobalDocument"_ustr);
+ pDocFact->SetDocumentServiceName(u"com.sun.star.text.TextDocument"_ustr);
}
// register 3D-object-Factory
diff --git a/sw/source/uibase/app/swmodul1.cxx b/sw/source/uibase/app/swmodul1.cxx
index 8c08c1f11781..4f4bcd780e31 100644
--- a/sw/source/uibase/app/swmodul1.cxx
+++ b/sw/source/uibase/app/swmodul1.cxx
@@ -366,7 +366,7 @@ void SwModule::ShowDBObj(SwView const & rView, const SwDBData& rData)
{
Reference<XFrame> xFrame = rView.GetViewFrame().GetFrame().GetFrameInterface();
- uno::Reference<XFrame> xBeamerFrame = xFrame->findFrame("_beamer", FrameSearchFlag::CHILDREN);
+ uno::Reference<XFrame> xBeamerFrame = xFrame->findFrame(u"_beamer"_ustr, FrameSearchFlag::CHILDREN);
if (!xBeamerFrame.is())
return;
@@ -416,7 +416,7 @@ OUString const & SwModule::GetRedlineAuthor(std::size_t nPos)
OSL_ENSURE(nPos < m_pAuthorNames.size(), "author not found!"); //#i45342# RTF doc with no author table caused reader to crash
while(nPos >= m_pAuthorNames.size())
{
- InsertRedlineAuthor("nn");
+ InsertRedlineAuthor(u"nn"_ustr);
}
return m_pAuthorNames[nPos];
}
diff --git a/sw/source/uibase/app/swmodule.cxx b/sw/source/uibase/app/swmodule.cxx
index e8bb17f37f79..3d351cf492e1 100644
--- a/sw/source/uibase/app/swmodule.cxx
+++ b/sw/source/uibase/app/swmodule.cxx
@@ -135,7 +135,7 @@ SwModule::SwModule( SfxObjectFactory* pWebFact,
m_pDragDrop( nullptr ),
m_pXSelection( nullptr )
{
- SetName( "StarWriter" );
+ SetName( u"StarWriter"_ustr );
SvxErrorHandler::ensure();
m_pErrorHandler.reset( new SfxErrorHandler( RID_SW_ERRHDL,
ErrCodeArea::Sw,
@@ -202,7 +202,7 @@ uno::Reference< linguistic2::XLanguageGuessing > const & SwModule::GetLanguageGu
SwModule::~SwModule()
{
css::uno::Sequence< css::uno::Any > aArgs;
- CallAutomationApplicationEventSinks( "Quit", aArgs );
+ CallAutomationApplicationEventSinks( u"Quit"_ustr, aArgs );
m_pErrorHandler.reset();
EndListening( *SfxGetpApp() );
}