diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-11-15 08:11:49 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-11-15 11:14:41 +0100 |
commit | 32334811f09592d669576de00af778c86f637f3e (patch) | |
tree | aa7498c55a416fc773db32954e00ea95ea45c441 /vcl | |
parent | e6968f0485cfb2f6c941d11c438386e14a47095d (diff) |
loplugin:fakebool
..."use "bool" instead of 'gboolean' (aka 'int')" after Clang 14 trunk
<https://github.com/llvm/llvm-project/commit/4d8fff477e024698facd89741cc6cf996708d598>
"[clang] retain type sugar in auto / template argument deduction". Arguably,
the plugin should not warn about uses of `auto`, but then again there is a very
similar case a few lines above that already uses `bool` instead of `auto`, so
clean this one up as well.
Change-Id: I62afa5ed30c192df7fa45aeb7d4a160712fa3794
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125215
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 56126820b94f..bb34db67447c 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -15037,7 +15037,7 @@ public: { GtkInstanceTreeIter& rGtkIter = static_cast<GtkInstanceTreeIter&>(rIter); GtkTreeIter tmp; - auto ret = gtk_tree_model_iter_parent(m_pTreeModel, &tmp, &rGtkIter.iter); + bool ret = gtk_tree_model_iter_parent(m_pTreeModel, &tmp, &rGtkIter.iter); rGtkIter.iter = tmp; return ret; } |