include/svx/svdtypes.hxx |    1 -
 include/svx/xtable.hxx   |    2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 8d3efdfe0cbc21e7bff57f6d265ed6d6cefece7f
Author: Jochen Nitschke <[email protected]>
Date:   Mon Sep 5 09:35:44 2016 +0200

    fix LAST enum members
    
    SdrRepeatFunc doesn't use it.
    XPropertyListType needs LAST for o3tl enum range.
    this fixes warning in svx/source/xoutdev/xtable.cxx:359:
    unknown xproperty type
    
    Change-Id: I5c3b7d0fa55c46002240e4f1697b1f21a0e364f4
    Reviewed-on: https://gerrit.libreoffice.org/28672
    Reviewed-by: Jochen Nitschke <[email protected]>
    Tested-by: Jenkins <[email protected]>

diff --git a/include/svx/svdtypes.hxx b/include/svx/svdtypes.hxx
index bb849c1..f999a92 100644
--- a/include/svx/svdtypes.hxx
+++ b/include/svx/svdtypes.hxx
@@ -108,7 +108,6 @@ enum class SdrRepeatFunc {
     MoveToBottom,
     ReverseOrder,
     ImportMtf,
-    LAST
 };
 
 #endif // INCLUDED_SVX_SVDTYPES_HXX
diff --git a/include/svx/xtable.hxx b/include/svx/xtable.hxx
index 39fc5f7..359ad43 100644
--- a/include/svx/xtable.hxx
+++ b/include/svx/xtable.hxx
@@ -153,7 +153,7 @@ enum class XPropertyListType {
     Gradient,
     Bitmap,
     Pattern,
-    LAST
+    LAST = Pattern
 };
 
 typedef rtl::Reference< class XPropertyList > XPropertyListRef;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to