vcl/source/control/field.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
New commits: commit 9d76dc9bfe4e4acb7ce7fcf976461e1d3ff9f685 Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Fri Dec 20 23:33:43 2024 +1100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Feb 8 08:10:21 2025 +0100 vcl: remove using namespaces from field.cxx Change-Id: Ie5e8463184171e4660aecc3395d6e85cb30dcc2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178942 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 5150fc546b21..6b1851fe9a8f 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -38,9 +38,6 @@ #include <cmath> #include <string_view> -using namespace ::com::sun::star; -using namespace ::comphelper; - namespace { @@ -328,10 +325,10 @@ bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue, { if (aStr2[nDecDigits] >= '5') bRound = true; - string::truncateToLength(aStr2, nDecDigits); + comphelper::string::truncateToLength(aStr2, nDecDigits); } if (aStr2.getLength() < nDecDigits) - string::padToLength(aStr2, nDecDigits, '0'); + comphelper::string::padToLength(aStr2, nDecDigits, '0'); aStr = aStr1 + aStr2; @@ -488,7 +485,7 @@ void FormatterBase::SetStrictFormat( bool bStrict ) } } -const lang::Locale& FormatterBase::GetLocale() const +const css::lang::Locale& FormatterBase::GetLocale() const { if ( mpField ) return mpField->GetSettings().GetLanguageTag().getLocale(); @@ -787,13 +784,13 @@ namespace sal_Int32 nTextLen; nTextLen = std::u16string_view(OUString::number(rFormatter.GetMin())).size(); - string::padToLength(aBuf, nTextLen, '9'); + comphelper::string::padToLength(aBuf, nTextLen, '9'); Size aMinTextSize = rSpinField.CalcMinimumSizeForText( rFormatter.CreateFieldText(OUString::unacquired(aBuf).toInt64())); aBuf.setLength(0); nTextLen = std::u16string_view(OUString::number(rFormatter.GetMax())).size(); - string::padToLength(aBuf, nTextLen, '9'); + comphelper::string::padToLength(aBuf, nTextLen, '9'); Size aMaxTextSize = rSpinField.CalcMinimumSizeForText( rFormatter.CreateFieldText(OUString::unacquired(aBuf).toInt64())); aBuf.setLength(0); @@ -806,7 +803,7 @@ namespace if (nDigits) { sBuf.append('.'); - string::padToLength(aBuf, aBuf.getLength() + nDigits, '9'); + comphelper::string::padToLength(aBuf, aBuf.getLength() + nDigits, '9'); } aMaxTextSize = rSpinField.CalcMinimumSizeForText(sBuf.makeStringAndClear()); aRet.setWidth( std::min(aRet.Width(), aMaxTextSize.Width()) );