[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 9 10:00:18 UTC 2020


 vcl/source/gdi/region.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b8fc9bbe7a37b12d10f22133480b878c83f69085
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 9 09:55:15 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Oct 9 11:59:39 2020 +0200

    ofz: Invalid-enum-value
    
    Change-Id: Ic1408ba7cf776dbf4923b8c9cef50bbd7fe94bdd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104108
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index c79b3a1b4657..ac4bd8a75863 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -1536,9 +1536,9 @@ SvStream& ReadRegion(SvStream& rIStrm, vcl::Region& rRegion)
     rIStrm.ReadUInt16( nTmp16 );
 
     enum RegionType { REGION_NULL, REGION_EMPTY, REGION_RECTANGLE, REGION_COMPLEX };
-    RegionType meStreamedType = static_cast<RegionType>(nTmp16);
+    auto eStreamedType = nTmp16;
 
-    switch(meStreamedType)
+    switch (eStreamedType)
     {
         case REGION_NULL:
         {


More information about the Libreoffice-commits mailing list