Kaydet (Commit) f82dc45b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use the canonical TemplateDecl

...in case there are multiple, as is the case at least with recent (towards
GCC 8) libstdc++, where std::pair is forward-declared also in
include/c++/8.0.0/bits/stl_iterator.h, so that in
dbaccess/source/ui/dlg/DbAdminImpl.cxx

    std::pair< Reference<XConnection>,sal_Bool> aRet;
    aRet.second = false;

failed to reconstruct the sal_Bool template argument and issued a
loplugin:implicitboolconversion warning.

Change-Id: I0054f2596d3f8837b857f1dca2f25952828b12cc
Reviewed-on: https://gerrit.libreoffice.org/45254Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 5bd63309
......@@ -159,6 +159,7 @@ bool isBoolExpr(Expr const * expr) {
if (td == nullptr) {
break;
}
td = cast<TemplateDecl>(td->getCanonicalDecl());
TemplateParameterList const * ps = td->getTemplateParameters();
SubstTemplateTypeParmType const * t2
= getAsSubstTemplateTypeParmType(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment