From be878d7cc54cbe3dc1de410e9ff760fe353ce56a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 19 Mar 2014 08:57:07 +0200 Subject: improve warning message in passstringbyref compiler plugin Change-Id: Ia8470bbd04c841e6c44c182493fede3dc312f635 --- compilerplugins/clang/passstringbyref.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compilerplugins/clang') diff --git a/compilerplugins/clang/passstringbyref.cxx b/compilerplugins/clang/passstringbyref.cxx index 610796936493..50e1a859fb11 100644 --- a/compilerplugins/clang/passstringbyref.cxx +++ b/compilerplugins/clang/passstringbyref.cxx @@ -49,14 +49,14 @@ bool PassStringByRef::VisitFunctionDecl(const FunctionDecl * functionDecl) { if (typeName == "class rtl::OUString") { report( DiagnosticsEngine::Warning, - "passing OUString by value, rather pass by reference", + "passing OUString by value, rather pass by reference .e.g. 'const OUString&'", pvDecl->getSourceRange().getBegin()) << pvDecl->getSourceRange(); } else if (typeName == "class rtl::OString") { report( DiagnosticsEngine::Warning, - "passing OString by value, rather pass by reference", + "passing OString by value, rather pass by reference .e.g. 'const OString&'", pvDecl->getSourceRange().getBegin()) << pvDecl->getSourceRange(); } -- cgit