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

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Fri Feb 12 04:01:50 UTC 2021


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

New commits:
commit c66461dca48665b54b7f9da748c87a32676a780d
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Wed Feb 10 17:38:14 2021 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Feb 12 05:01:03 2021 +0100

    devtools: show if it is a struct or object as a value (for now)
    
    Change-Id: I9edf2b29941ab9810dd52f6ad52f7856f2e8f61f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110740
    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 c4e3a67e916f..b536c4a084f4 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -63,6 +63,16 @@ OUString AnyToString(const uno::Any& aValue)
     OUString aRetStr;
     switch (eType)
     {
+        case uno::TypeClass_INTERFACE:
+        {
+            aRetStr = "<Object>";
+            break;
+        }
+        case uno::TypeClass_STRUCT:
+        {
+            aRetStr = "<Struct>";
+            break;
+        }
         case uno::TypeClass_BOOLEAN:
         {
             bool bBool = aValue.get<bool>();


More information about the Libreoffice-commits mailing list