summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-07 19:11:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-08 08:40:57 +0100
commite4e9d1d8000321c6bcd591989f4ce4b68553cb86 (patch)
treeb05998c03e8445d70f1c56b40c1377cb4aa45f0b /basctl
parentaae76f4df1d4a554fa16c05a28d2e1d10ea558af (diff)
loplugin:reftotemp in basctl,basegfx
Change-Id: Ifbc294320cd717892544133e976ff776a0fdbd6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176243 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2b.cxx8
-rw-r--r--basctl/source/basicide/localizationmgr.cxx16
2 files changed, 12 insertions, 12 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index f25915ac1b47..ca5858865cba 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -660,7 +660,7 @@ void EditorWindow::HandleAutoCorrect()
const sal_uInt32 nLine = aSel.GetStart().GetPara();
const sal_Int32 nIndex = aSel.GetStart().GetIndex();
OUString aLine( pEditEngine->GetText( nLine ) ); // the line being modified
- const OUString& sActSubName = GetActualSubName( nLine ); // the actual procedure
+ const OUString sActSubName = GetActualSubName( nLine ); // the actual procedure
std::vector<HighlightPortion> aPortions;
aHighlighter.getHighlightPortions( aLine, aPortions );
@@ -931,7 +931,7 @@ void EditorWindow::HandleCodeCompletion()
if( !sVarType.isEmpty() && CodeCompleteOptions::IsAutoCorrectOn() )
{//correct variable name, if autocorrection on
- const OUString& sStr = aCodeCompleteCache.GetCorrectCaseVarName( sBaseName, GetActualSubName(nLine) );
+ const OUString sStr = aCodeCompleteCache.GetCorrectCaseVarName( sBaseName, GetActualSubName(nLine) );
if( !sStr.isEmpty() )
{
TextPaM aStart(nLine, aSel.GetStart().GetIndex() - sStr.getLength() );
@@ -2915,11 +2915,11 @@ void CodeCompleteWindow::ResizeAndPositionListBox()
//calculate position
const tools::Rectangle aVisArea( pParent->GetEditView()->GetStartDocPos(), pParent->GetOutputSizePixel() ); //the visible area
- const Point& aBottomPoint = aVisArea.BottomRight();
+ const Point aBottomPoint = aVisArea.BottomRight();
if( aVisArea.TopRight().getY() + aPos.getY() + aSize.getHeight() > aBottomPoint.getY() )
{//clipped at the bottom: move it up
- const tools::Long& nParentFontHeight = pParent->GetEditEngine()->GetFont().GetFontHeight(); //parent's font (in the IDE): needed for height
+ const tools::Long nParentFontHeight = pParent->GetEditEngine()->GetFont().GetFontHeight(); //parent's font (in the IDE): needed for height
aPos.AdjustY( -(aSize.getHeight() + nParentFontHeight + nCursorPad) );
}
diff --git a/basctl/source/basicide/localizationmgr.cxx b/basctl/source/basicide/localizationmgr.cxx
index 937e4bd511b2..02ff357f40dd 100644
--- a/basctl/source/basicide/localizationmgr.cxx
+++ b/basctl/source/basicide/localizationmgr.cxx
@@ -311,7 +311,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
OUString aPureIdStr = implCreatePureResourceId
( aDialogName, aCtrlName, aPropName, xStringResourceManager );
- const Locale& rDefaultLocale = xSourceStringResolver->getDefaultLocale();
+ const Locale aDefaultLocale = xSourceStringResolver->getDefaultLocale();
// Set Id for all locales
for (auto& rLocale : aLocaleSeq)
@@ -325,7 +325,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
catch(const MissingResourceException&)
{
aResStr = xSourceStringResolver->resolveStringForLocale
- ( aPureSourceIdStr, rDefaultLocale );
+ ( aPureSourceIdStr, aDefaultLocale );
}
xStringResourceManager->setStringForLocale( aPureIdStr, aResStr, rLocale );
}
@@ -340,7 +340,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
{
OUString aPureSourceIdStr = aPropStr.copy( 1 );
- const Locale& rDefaultLocale = xSourceStringResolver->getDefaultLocale();
+ const Locale aDefaultLocale = xSourceStringResolver->getDefaultLocale();
// Copy Id for all locales
for (auto& rLocale : aLocaleSeq)
@@ -354,7 +354,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
catch(const MissingResourceException&)
{
aResStr = xSourceStringResolver->resolveStringForLocale
- ( aPureSourceIdStr, rDefaultLocale );
+ ( aPureSourceIdStr, aDefaultLocale );
}
xStringResourceManager->setStringForLocale( aPureSourceIdStr, aResStr, rLocale );
}
@@ -505,7 +505,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
+ aDot
+ aPropName;
- const Locale& rDefaultLocale = xSourceStringResolver->getDefaultLocale();
+ const Locale aDefaultLocale = xSourceStringResolver->getDefaultLocale();
for (sal_Int32 i = 0; i < nPropStringCount; ++i)
{
@@ -528,7 +528,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
catch(const MissingResourceException&)
{
aResStr = xSourceStringResolver->resolveStringForLocale
- ( aPureSourceIdStr, rDefaultLocale );
+ ( aPureSourceIdStr, aDefaultLocale );
}
xStringResourceManager->setStringForLocale( aPureIdStr, aResStr, rLocale );
}
@@ -540,7 +540,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
// Copy string from source to target resource
else if( eMode == COPY_RESOURCES && xSourceStringResolver.is() )
{
- const Locale& rDefaultLocale = xSourceStringResolver->getDefaultLocale();
+ const Locale aDefaultLocale = xSourceStringResolver->getDefaultLocale();
for (auto& aSourceIdStr : aPropStrings)
{
@@ -558,7 +558,7 @@ sal_Int32 LocalizationMgr::implHandleControlResourceProperties
catch(const MissingResourceException&)
{
aResStr = xSourceStringResolver->resolveStringForLocale
- ( aPureSourceIdStr, rDefaultLocale );
+ ( aPureSourceIdStr, aDefaultLocale );
}
xStringResourceManager->setStringForLocale( aPureSourceIdStr, aResStr, rLocale );
}