summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/CollectionView.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-07 08:51:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-07 12:53:22 +0200
commitd52a4dba6a247a0ee2e1c419533818fbfd281f71 (patch)
tree28bd1fb6815b1cdd347111f9e620de654a9356b3 /dbaccess/source/ui/dlg/CollectionView.cxx
parent04d383191403f400d7917412ea72a441e120b333 (diff)
loplugin:ostr in dbaccess
Change-Id: I6d720ef94d9f29c120f292b844721621e6630856 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167259 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/dlg/CollectionView.cxx')
-rw-r--r--dbaccess/source/ui/dlg/CollectionView.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx b/dbaccess/source/ui/dlg/CollectionView.cxx
index 63f018f9e176..78e025ea748c 100644
--- a/dbaccess/source/ui/dlg/CollectionView.cxx
+++ b/dbaccess/source/ui/dlg/CollectionView.cxx
@@ -58,16 +58,16 @@ OCollectionView::OCollectionView(weld::Window* pParent,
const Reference< XContent>& _xContent,
const OUString& _sDefaultName,
css::uno::Reference< css::uno::XComponentContext > _xContext)
- : GenericDialogController(pParent, "dbaccess/ui/collectionviewdialog.ui", "CollectionView")
+ : GenericDialogController(pParent, u"dbaccess/ui/collectionviewdialog.ui"_ustr, u"CollectionView"_ustr)
, m_xContent(_xContent)
, m_xContext(std::move(_xContext))
, m_bCreateForm(true)
- , m_xFTCurrentPath(m_xBuilder->weld_label("currentPathLabel"))
- , m_xNewFolder(m_xBuilder->weld_button("newFolderButton"))
- , m_xUp(m_xBuilder->weld_button("upButton"))
- , m_xView(m_xBuilder->weld_tree_view("viewTreeview"))
- , m_xName(m_xBuilder->weld_entry("fileNameEntry"))
- , m_xPB_OK(m_xBuilder->weld_button("ok"))
+ , m_xFTCurrentPath(m_xBuilder->weld_label(u"currentPathLabel"_ustr))
+ , m_xNewFolder(m_xBuilder->weld_button(u"newFolderButton"_ustr))
+ , m_xUp(m_xBuilder->weld_button(u"upButton"_ustr))
+ , m_xView(m_xBuilder->weld_tree_view(u"viewTreeview"_ustr))
+ , m_xName(m_xBuilder->weld_entry(u"fileNameEntry"_ustr))
+ , m_xPB_OK(m_xBuilder->weld_button(u"ok"_ustr))
{
Reference<XInteractionHandler2> xHandler(
InteractionHandler::createWithParent(m_xContext, m_xDialog->GetXWindow()));
@@ -133,7 +133,7 @@ IMPL_LINK_NOARG(OCollectionView, Save_Click, weld::Button&, void)
Sequence<Any> aValues(comphelper::InitAnyPropertySequence(
{
{"ResourceName", Any(sSubFolder)},
- {"ResourceType", Any(OUString("folder"))}
+ {"ResourceType", Any(u"folder"_ustr)}
}));
InteractiveAugmentedIOException aException(OUString(),Reference<XInterface>(),
InteractionClassification_ERROR,
@@ -255,7 +255,7 @@ void OCollectionView::initCurrentPath()
static const char s_sFormsCID[] = "private:forms";
static const char s_sReportsCID[] = "private:reports";
m_bCreateForm = s_sFormsCID == sCID;
- OUString sPath("/");
+ OUString sPath(u"/"_ustr);
if ( m_bCreateForm && o3tl::make_unsigned(sCID.getLength()) != strlen(s_sFormsCID))
sPath = sCID.copy(strlen(s_sFormsCID));
else if ( !m_bCreateForm && o3tl::make_unsigned(sCID.getLength()) != strlen(s_sReportsCID) )
@@ -290,7 +290,7 @@ void OCollectionView::Initialize()
try
{
::ucbhelper::Content aContent(m_xContent, m_xCmdEnv, comphelper::getProcessComponentContext());
- Sequence<OUString> aProps { "Title", "IsFolder" };
+ Sequence<OUString> aProps { u"Title"_ustr, u"IsFolder"_ustr };
auto xDynResultSet = aContent.createDynamicCursor(aProps, ucbhelper::INCLUDE_FOLDERS_ONLY);
if (!xDynResultSet.is())
return;