diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-19 20:57:54 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-24 23:22:06 +0100 |
commit | c7363cb6d1d31f2a7d40a76e62b5934629a1a8a1 (patch) | |
tree | 476f72232236241698fab0ac1e2f05413df96be4 | |
parent | 4c2393eae69902107febc62161fd842fdea953c4 (diff) |
sal_uInt16 to sal_Int32 and remove OUString temporaries
Change-Id: I476fb65a1e55db084bb12e61e6d3d9ccf3a41637
-rw-r--r-- | sw/source/ui/utlui/swrenamexnameddlg.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/ui/utlui/swrenamexnameddlg.cxx b/sw/source/ui/utlui/swrenamexnameddlg.cxx index 7aaa56bbafae..c718024f43ee 100644 --- a/sw/source/ui/utlui/swrenamexnameddlg.cxx +++ b/sw/source/ui/utlui/swrenamexnameddlg.cxx @@ -93,11 +93,11 @@ IMPL_LINK(SwRenameXNamedDlg, ModifyHdl, NoSpaceEdit*, pEdit) OUString sTmp(pEdit->GetText()); // prevent from pasting illegal characters - sal_uInt16 nLen = sTmp.getLength(); + const sal_Int32 nLen = sTmp.getLength(); OUString sMsg; - for(sal_uInt16 i = 0; i < pEdit->GetForbiddenChars().getLength(); i++) + for(sal_Int32 i = 0; i < pEdit->GetForbiddenChars().getLength(); ++i) { - sal_uInt16 nTmpLen = sTmp.getLength(); + const sal_Int32 nTmpLen = sTmp.getLength(); sTmp = comphelper::string::remove(sTmp, pEdit->GetForbiddenChars()[i]); if(sTmp.getLength() != nTmpLen) sMsg += OUString(pEdit->GetForbiddenChars()[i]); @@ -105,9 +105,7 @@ IMPL_LINK(SwRenameXNamedDlg, ModifyHdl, NoSpaceEdit*, pEdit) if(sTmp.getLength() != nLen) { pEdit->SetText(sTmp); - OUString sWarning(m_sRemoveWarning); - sWarning += sMsg; - InfoBox(this, sWarning).Execute(); + InfoBox(this, m_sRemoveWarning + sMsg).Execute(); } m_pOk->Enable(!sTmp.isEmpty() |