compilerplugins/clang/returnbyref.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 466ee86cabe049ddaa873b831a895386162cb3aa Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Jun 24 12:32:18 2014 +0200 Clang trunk compat fix Change-Id: Ic414ad0416e27e223ff702996b796b68d39709b9 diff --git a/compilerplugins/clang/returnbyref.cxx b/compilerplugins/clang/returnbyref.cxx index a386b5d..b5f32ee 100644 --- a/compilerplugins/clang/returnbyref.cxx +++ b/compilerplugins/clang/returnbyref.cxx @@ -10,6 +10,7 @@ #include <string> #include <set> +#include "compat.hxx" #include "plugin.hxx" // Find places where we are returning a pointer to something, where we can be returning a reference. @@ -56,7 +57,7 @@ bool ReturnByRef::VisitCXXMethodDecl(const CXXMethodDecl * functionDecl) { functionDecl->getCanonicalDecl()->getNameInfo().getLoc()))) { return true; } - QualType t1 { functionDecl->getResultType() }; + QualType t1 { compat::getReturnType(*functionDecl) }; if (!t1->isPointerType()) { return true; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits