summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-02 11:33:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-02 13:15:33 +0100
commita0e136d2cbb3784ddfcbddcfed5d784c8e4c9a64 (patch)
treea86891188892c9525679a4a2a47ab772e7ccecbc /compilerplugins/clang/test
parent4855257e52056241633c2b1d8159c3f0e71e05f3 (diff)
loplugin:passstuffbyref improved return in sd,various
Change-Id: I4b6ea89ae2072f4389a696ea3c96d8f7a5731e7a Reviewed-on: https://gerrit.libreoffice.org/47246 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/test')
-rw-r--r--compilerplugins/clang/test/passstuffbyref.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/passstuffbyref.cxx b/compilerplugins/clang/test/passstuffbyref.cxx
index ed86d4d309d9..71c219c986ec 100644
--- a/compilerplugins/clang/test/passstuffbyref.cxx
+++ b/compilerplugins/clang/test/passstuffbyref.cxx
@@ -52,6 +52,7 @@ struct S2 {
OUString set5(OUString const & s) { return s; }
OUString set6() { std::vector<OUString> v1(1); return v1[0]; }
OUString set7(S1 const & s) { return s.get(); }
+ OUString set8() { OUString * p = nullptr; return *p; }
};