summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dbui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-01 09:08:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-03 11:56:43 +0200
commit4969f4c0d3e2581aaa8a5b5a5769840fa6b6f8ea (patch)
treeeb42ab5be5d8c5ca3d23b686a8781c28822381b4 /sw/source/uibase/dbui
parentd5cc52fec12e3c8d1c3561f172d3e1c5434290b3 (diff)
loplugin:constfields in sw
Change-Id: I1eb6583bb9ec815bc0564b0d7c676f5b1fb9045f Reviewed-on: https://gerrit.libreoffice.org/61177 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dbui')
-rw-r--r--sw/source/uibase/dbui/dbui.cxx9
-rw-r--r--sw/source/uibase/dbui/maildispatcher.cxx2
2 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/uibase/dbui/dbui.cxx b/sw/source/uibase/dbui/dbui.cxx
index bcc3119648f4..a8df1532b8ac 100644
--- a/sw/source/uibase/dbui/dbui.cxx
+++ b/sw/source/uibase/dbui/dbui.cxx
@@ -53,8 +53,6 @@ CreateMonitor::CreateMonitor(weld::Window *pParent)
: GenericDialogController(pParent, "modules/swriter/ui/mmcreatingdialog.ui",
"MMCreatingDialog")
, m_sCountingPattern()
- , m_sVariable_Total("%Y")
- , m_sVariable_Position("%X")
, m_nTotalCount(0)
, m_nCurrentPosition(0)
, m_xCounting(m_xBuilder->weld_label("progress"))
@@ -69,9 +67,12 @@ CreateMonitor::~CreateMonitor()
void CreateMonitor::UpdateCountingText()
{
+ constexpr OUStringLiteral sVariable_Total("%Y");
+ constexpr OUStringLiteral sVariable_Position("%X");
+
OUString sText(m_sCountingPattern);
- sText = sText.replaceAll( m_sVariable_Total, OUString::number( m_nTotalCount ) );
- sText = sText.replaceAll( m_sVariable_Position, OUString::number( m_nCurrentPosition ) );
+ sText = sText.replaceAll( sVariable_Total, OUString::number( m_nTotalCount ) );
+ sText = sText.replaceAll( sVariable_Position, OUString::number( m_nCurrentPosition ) );
m_xCounting->set_label(sText);
}
diff --git a/sw/source/uibase/dbui/maildispatcher.cxx b/sw/source/uibase/dbui/maildispatcher.cxx
index ae789beb30c5..5b1a1d80708d 100644
--- a/sw/source/uibase/dbui/maildispatcher.cxx
+++ b/sw/source/uibase/dbui/maildispatcher.cxx
@@ -89,7 +89,7 @@ namespace /* private */
private:
::rtl::Reference<MailDispatcher> mail_dispatcher_;
uno::Reference<mail::XMailMessage> message_;
- OUString error_message_;
+ OUString const error_message_;
};
} // namespace private