include/svx/galctrl.hxx | 6 +++--- svx/source/gallery2/galctrl.cxx | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-)
New commits: commit be145cb8b6f60805ddc8674aa6557be7e79c227f Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Mon Feb 17 08:12:24 2025 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Feb 17 09:16:33 2025 +0100 svx: prefix members of GalleryPreview See tdf#94879 for motivation. Change-Id: I5b2f371541851adb3a423573567b33f207c4ab3d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181760 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/include/svx/galctrl.hxx b/include/svx/galctrl.hxx index 43e3b3673bea..7624b46ca9f9 100644 --- a/include/svx/galctrl.hxx +++ b/include/svx/galctrl.hxx @@ -37,8 +37,8 @@ private: std::unique_ptr<GalleryDragDrop> mxDragDropTargetHelper; std::unique_ptr<weld::ScrolledWindow> mxScrolledWindow; - GraphicObject aGraphicObj; - tools::Rectangle aPreviewRect; + GraphicObject m_aGraphicObj; + tools::Rectangle m_aPreviewRect; GalleryBrowser1* mpParent; GalleryTheme* mpTheme; @@ -62,7 +62,7 @@ public: virtual void Show() override; virtual void Hide() override; - void SetGraphic( const Graphic& rGraphic ) { aGraphicObj.SetGraphic( rGraphic ); } + void SetGraphic( const Graphic& rGraphic ) { m_aGraphicObj.SetGraphic( rGraphic ); } static void PreviewMedia( const INetURLObject& rURL ); }; diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx index a6b916beb472..b3927010edac 100644 --- a/svx/source/gallery2/galctrl.cxx +++ b/svx/source/gallery2/galctrl.cxx @@ -114,15 +114,15 @@ void GalleryPreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rect rRenderContext.SetBackground(Wallpaper(GALLERY_BG_COLOR)); rRenderContext.Erase(); - if (ImplGetGraphicCenterRect(aGraphicObj.GetGraphic(), aPreviewRect)) + if (ImplGetGraphicCenterRect(m_aGraphicObj.GetGraphic(), m_aPreviewRect)) { - const Point aPos( aPreviewRect.TopLeft() ); - const Size aSize( aPreviewRect.GetSize() ); + const Point aPos( m_aPreviewRect.TopLeft() ); + const Size aSize( m_aPreviewRect.GetSize() ); - if( aGraphicObj.IsAnimated() ) - aGraphicObj.StartAnimation(rRenderContext, aPos, aSize); + if( m_aGraphicObj.IsAnimated() ) + m_aGraphicObj.StartAnimation(rRenderContext, aPos, aSize); else - aGraphicObj.Draw(rRenderContext, aPos, aSize); + m_aGraphicObj.Draw(rRenderContext, aPos, aSize); } }