loplugin:returnconstval in sfx2

Change-Id: I9761dbfa66ea59d5c9c0cd87740fdb8ca34008eb
Reviewed-on: https://gerrit.libreoffice.org/78034
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-08-24 09:02:41 +02:00
parent 428957e6db
commit b4e1389f7a
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ public:
SAL_DLLPRIVATE void SetDispatchProvider_Impl( const css::uno::Reference< css::frame::XDispatchProvider > & rFrame );
void SetActiveFrame( const css::uno::Reference< css::frame::XFrame > & rFrame );
const css::uno::Reference< css::frame::XFrame > GetActiveFrame() const;
css::uno::Reference< css::frame::XFrame > GetActiveFrame() const;
// Reconfig
sal_uInt16 EnterRegistrations(const char *pFile = nullptr, int nLine = 0);
void LeaveRegistrations( const char *pFile = nullptr, int nLine = 0 );
+1 -1
View File
@@ -130,7 +130,7 @@ public:
static Image GetImage (const ThemeItem eItem);
static Color GetColor (const ThemeItem eItem);
static const Paint& GetPaint (const ThemeItem eItem);
static const Wallpaper GetWallpaper (const ThemeItem eItem);
static Wallpaper GetWallpaper (const ThemeItem eItem);
static sal_Int32 GetInteger (const ThemeItem eItem);
static bool GetBoolean (const ThemeItem eItem);
+1 -1
View File
@@ -1677,7 +1677,7 @@ void SfxBindings::SetActiveFrame( const css::uno::Reference< css::frame::XFrame
pDispatcher->GetFrame()->GetFrame().GetFrameInterface(), css::uno::UNO_QUERY ) );
}
const css::uno::Reference< css::frame::XFrame > SfxBindings::GetActiveFrame() const
css::uno::Reference< css::frame::XFrame > SfxBindings::GetActiveFrame() const
{
const css::uno::Reference< css::frame::XFrame > xFrame( pImpl->xProv, css::uno::UNO_QUERY );
if ( xFrame.is() || !pDispatcher )
+1 -1
View File
@@ -185,7 +185,7 @@ static utl::OConfigurationTreeRoot lcl_getCurrentImplConfigRoot()
true);
}
static const utl::OConfigurationNode lcl_getCurrentImplConfigNode(const Reference<css::frame::XFrame>& xFrame,
static utl::OConfigurationNode lcl_getCurrentImplConfigNode(const Reference<css::frame::XFrame>& xFrame,
utl::OConfigurationTreeRoot const & rNotebookbarNode )
{
if (!rNotebookbarNode.isValid())
+1 -1
View File
@@ -332,7 +332,7 @@ void Deck::ShowPanel(const Panel& rPanel)
}
}
static const OUString GetWindowClassification(const vcl::Window* pWindow)
static OUString GetWindowClassification(const vcl::Window* pWindow)
{
const OUString& rsName (pWindow->GetText());
if (!rsName.isEmpty())
+1 -1
View File
@@ -94,7 +94,7 @@ const Paint& Theme::GetPaint (const ThemeItem eItem)
return rTheme.maPaints[nIndex];
}
const Wallpaper Theme::GetWallpaper (const ThemeItem eItem)
Wallpaper Theme::GetWallpaper (const ThemeItem eItem)
{
return GetPaint(eItem).GetWallpaper();
}