summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-10-09 20:29:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-10 07:46:43 +0200
commitbe091490b6701f729dc991271a036a96967d4f0a (patch)
tree766bd4f9643473e431f49d0242ef24cf0b68a9ed /sd/source/ui
parent30d2c8bbde0c465a2f87324eb974ad8e68e28cd7 (diff)
EMPTY_FRAMELIST can be constexpr
Change-Id: I9b43ec53f9d808dd23f05b67248fe96435c649e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174748 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/dlg/animobjs.cxx2
-rw-r--r--sd/source/ui/inc/animobjs.hxx2
2 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx
index ed87f6ed4aca..56f9cc508626 100644
--- a/sd/source/ui/dlg/animobjs.cxx
+++ b/sd/source/ui/dlg/animobjs.cxx
@@ -116,8 +116,6 @@ void SdDisplay::SetDrawingArea(weld::DrawingArea* pDrawingArea)
SetOutputSizePixel(aSize);
}
-const size_t AnimationWindow::EMPTY_FRAMELIST = std::numeric_limits<size_t>::max();
-
/**
* AnimationWindow - FloatingWindow
*/
diff --git a/sd/source/ui/inc/animobjs.hxx b/sd/source/ui/inc/animobjs.hxx
index b44a5fb3dc08..4797095aa6c6 100644
--- a/sd/source/ui/inc/animobjs.hxx
+++ b/sd/source/ui/inc/animobjs.hxx
@@ -112,7 +112,7 @@ private:
std::unique_ptr<weld::Button> m_xBtnHelp;
::std::vector< ::std::pair<BitmapEx, ::tools::Time> > m_FrameList;
- static const size_t EMPTY_FRAMELIST;
+ static constexpr size_t EMPTY_FRAMELIST = std::numeric_limits<size_t>::max();
size_t m_nCurrentFrame;
std::unique_ptr<SdDrawDocument> pMyDoc;