From 8930b1f69e4b1c8c02902eb447c00b1d2b420e81 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Sep 2021 21:01:58 +0200 Subject: rather return ref from getCharClassPtr since we never return a nullptr, and rename to reflect that Change-Id: I5b8f0aba6ce387bb0fe1ce6088ba2685d2ade7f5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122209 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/docshell/docsh4.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/docshell/docsh4.cxx') diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index cba881387d26..3730cc10ae15 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -286,7 +286,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) if (bIsNewArea) { ScDBCollection* pDBColl = m_aDocument.GetDBCollection(); - if ( !pDBColl || !pDBColl->getNamedDBs().findByUpperName(ScGlobal::getCharClassPtr()->uppercase(sTarget)) ) + if ( !pDBColl || !pDBColl->getNamedDBs().findByUpperName(ScGlobal::getCharClass().uppercase(sTarget)) ) { ScAddress aPos; if ( aPos.Parse( sTarget, m_aDocument, m_aDocument.GetAddressConvention() ) & ScRefFlags::VALID ) @@ -2480,7 +2480,7 @@ bool ScDocShell::DdeSetData( const OUString& rItem, ScRangeName* pRange = m_aDocument.GetRangeName(); if( pRange ) { - const ScRangeData* pData = pRange->findByUpperName(ScGlobal::getCharClassPtr()->uppercase(aPos)); + const ScRangeData* pData = pRange->findByUpperName(ScGlobal::getCharClass().uppercase(aPos)); if (pData) { if( pData->HasType( ScRangeData::Type::RefArea ) -- cgit