summaryrefslogtreecommitdiff
path: root/sw/source/uibase/misc/redlndlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-05-18 21:14:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-19 15:40:40 +0200
commit2155e04d6343638ca9815d394cbc4f78c2b17c3a (patch)
tree0378142f6ce9edb63074291aed45527568e7b254 /sw/source/uibase/misc/redlndlg.cxx
parentcee02e81cd3b55fb46eacf5db5713e8bf4363bcd (diff)
make string translation loading more uniform
change various ResId classes that use conversion operator to OUString to functions that return a OUString drop various defines drop unnecessary toString calls Change-Id: Ibeccdf2b91a46a2ed5b4b74e6024e301a023bc92 Reviewed-on: https://gerrit.libreoffice.org/37817 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/misc/redlndlg.cxx')
-rw-r--r--sw/source/uibase/misc/redlndlg.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx
index d2474432d08c..71306a2d9432 100644
--- a/sw/source/uibase/misc/redlndlg.cxx
+++ b/sw/source/uibase/misc/redlndlg.cxx
@@ -151,12 +151,12 @@ SwRedlineAcceptDlg::SwRedlineAcceptDlg(vcl::Window *pParent, VclBuilderContainer
: m_pParentDlg(pParent)
, m_aTabPagesCTRL(VclPtr<SvxAcceptChgCtr>::Create(pContentArea, pBuilder))
, m_xPopup(pBuilder->get_menu("writermenu"))
- , m_sInserted(SW_RES(STR_REDLINE_INSERTED))
- , m_sDeleted(SW_RES(STR_REDLINE_DELETED))
- , m_sFormated(SW_RES(STR_REDLINE_FORMATED))
- , m_sTableChgd(SW_RES(STR_REDLINE_TABLECHG))
- , m_sFormatCollSet(SW_RES(STR_REDLINE_FMTCOLLSET))
- , m_sAutoFormat(SW_RES(STR_REDLINE_AUTOFMT))
+ , m_sInserted(SwResId(STR_REDLINE_INSERTED))
+ , m_sDeleted(SwResId(STR_REDLINE_DELETED))
+ , m_sFormated(SwResId(STR_REDLINE_FORMATED))
+ , m_sTableChgd(SwResId(STR_REDLINE_TABLECHG))
+ , m_sFormatCollSet(SwResId(STR_REDLINE_FMTCOLLSET))
+ , m_sAutoFormat(SwResId(STR_REDLINE_AUTOFMT))
, m_bOnlyFormatedRedlines(false)
, m_bRedlnAutoFormat(bAutoFormat)
, m_bInhibitActivate(false)
@@ -819,7 +819,7 @@ void SwRedlineAcceptDlg::CallAcceptReject( bool bSelect, bool bAccept )
SwRewriter aRewriter;
aRewriter.AddRule(UndoArg1,
OUString::number(aRedlines.size()));
- aTmpStr = aRewriter.Apply(OUString(SW_RES(STR_N_REDLINES)));
+ aTmpStr = aRewriter.Apply(SwResId(STR_N_REDLINES));
}
SwRewriter aRewriter;
@@ -1111,9 +1111,9 @@ IMPL_LINK_NOARG(SwRedlineAcceptDlg, CommandHdl, SvSimpleTable*, void)
break;
default:;//prevent warning
}
- OUString sTitle(SW_RES(STR_REDLINE_COMMENT));
+ OUString sTitle(SwResId(STR_REDLINE_COMMENT));
if( nResId )
- sTitle += SW_RESSTR( nResId );
+ sTitle += SwResId( nResId );
pDlg->SetText(sTitle);
SwViewShell::SetCareWin(pDlg->GetWindow());