diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:07:31 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-08-21 15:10:35 +0200 |
commit | 64b993e046f23baaacaff1572b7d2a816588b5ef (patch) | |
tree | 237dce36a1d4787d168a0520839f6aab22500487 /reportdesign | |
parent | 75f41baab6ce75786a91fe461835ee16a23ec18e (diff) |
finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.
Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlExport.cxx | 4 | ||||
-rw-r--r-- | reportdesign/source/ui/dlg/GroupsSorting.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/misc/UITools.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 52cb74e7656f..567743238999 100644 --- a/reportdesign/source/filter/xml/xmlExport.cxx +++ b/reportdesign/source/filter/xml/xmlExport.cxx @@ -1540,7 +1540,7 @@ void ORptExport::exportGroupsExpressionAsFunction(const Reference< XGroups>& _xG { case report::GroupOn::PREFIX_CHARACTERS: sFunction = OUString("LEFT"); - sPrefix = OUString(";") + OUString::valueOf(xGroup->getGroupInterval()); + sPrefix = OUString(";") + OUString::number(xGroup->getGroupInterval()); break; case report::GroupOn::YEAR: sFunction = OUString("YEAR"); @@ -1577,7 +1577,7 @@ void ORptExport::exportGroupsExpressionAsFunction(const Reference< XGroups>& _xG sExpression = sCountName; // The reference to sCountName in the formula of sFunctionName refers to the *old* value // so we need to expand the the formula of sCountName - sPrefix = OUString(" + 1) / ") + OUString::valueOf(xGroup->getGroupInterval()); + sPrefix = OUString(" + 1) / ") + OUString::number(xGroup->getGroupInterval()); sFunctionName = sFunction + OUString("_") + sExpression; sFunction = sFunction + OUString("("); sInitialFormula = OUString("rpt:0"); diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index 4d4f9fd078f1..5a09d586b8ff 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -1345,7 +1345,7 @@ void OGroupsSortingDialog::displayGroup(const uno::Reference<report::XGroup>& _x nPos = 0; } m_aGroupOnLst.SelectEntryPos(nPos); - m_aGroupIntervalEd.SetText(OUString::valueOf(_xGroup->getGroupInterval())); + m_aGroupIntervalEd.SetText(OUString::number(_xGroup->getGroupInterval())); m_aGroupIntervalEd.SaveValue(); m_aGroupIntervalEd.Enable( nPos != 0 ); m_aKeepTogetherLst.SelectEntryPos(_xGroup->getKeepTogether()); diff --git a/reportdesign/source/ui/misc/UITools.cxx b/reportdesign/source/ui/misc/UITools.cxx index e96fb0bf9943..683b55f9ffa3 100644 --- a/reportdesign/source/ui/misc/UITools.cxx +++ b/reportdesign/source/ui/misc/UITools.cxx @@ -162,14 +162,14 @@ void adjustSectionName(const uno::Reference< report::XGroup >& _xGroup,sal_Int32 if ( _xGroup->getHeaderOn() && _xGroup->getHeader()->getName().isEmpty() ) { OUString sName = String(ModuleRes(RID_STR_GROUPHEADER)); - sName += OUString::valueOf(_nPos); + sName += OUString::number(_nPos); _xGroup->getHeader()->setName(sName); } if ( _xGroup->getFooterOn() && _xGroup->getFooter()->getName().isEmpty() ) { OUString sName = String(ModuleRes(RID_STR_GROUPFOOTER)); - sName += OUString::valueOf(_nPos); + sName += OUString::number(_nPos); _xGroup->getFooter()->setName(sName); } } |