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

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Fri Feb 12 12:30:14 UTC 2021


 sfx2/source/devtools/ObjectInspectorTreeHandler.cxx |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

New commits:
commit d8cc3e7c9cbdd2959cc7b1c529909c7e4dac6e35
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Fri Feb 12 18:53:34 2021 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Feb 12 13:29:23 2021 +0100

    devtools: show values of unsigned types which were missing before
    
    Change-Id: Id2ee470eaa2cddfb11f5e85c6f3dfcdcb137c244
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110804
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index fd51a06ee3e8..b00bbfc72c81 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -127,6 +127,24 @@ OUString AnyToString(const uno::Any& aValue)
             aRetStr = OUString::number(aNumber);
             break;
         }
+        case uno::TypeClass_UNSIGNED_SHORT:
+        {
+            auto aNumber = aValue.get<sal_uInt16>();
+            aRetStr = OUString::number(aNumber);
+            break;
+        }
+        case uno::TypeClass_UNSIGNED_LONG:
+        {
+            auto aNumber = aValue.get<sal_uInt32>();
+            aRetStr = OUString::number(aNumber);
+            break;
+        }
+        case uno::TypeClass_UNSIGNED_HYPER:
+        {
+            auto aNumber = aValue.get<sal_uInt64>();
+            aRetStr = OUString::number(aNumber);
+            break;
+        }
 
         default:
             break;


More information about the Libreoffice-commits mailing list