diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-25 15:42:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-26 05:19:57 +0000 |
commit | 8b920435c09a56bab35876d5e43a1e6098bf3dcf (patch) | |
tree | 8438a4d689ed31adcd1d6105e774bbbe81fee78d /include | |
parent | 67936ee7ed717eb385b608d7eedcefa61fe13295 (diff) |
mark VclPtr::Create as SAL_WARN_UNUSED_RESULT
Change-Id: I7b5bb8a0ed8848c9e426d2015983156e34947914
Reviewed-on: https://gerrit.libreoffice.org/31202
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/vclptr.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/vclptr.hxx b/include/vcl/vclptr.hxx index f56e006d58e4..ab57dfadf205 100644 --- a/include/vcl/vclptr.hxx +++ b/include/vcl/vclptr.hxx @@ -133,7 +133,7 @@ public: * * @tparam reference_type must be a subclass of vcl::Window */ - template<typename... Arg> static VclPtr< reference_type > Create(Arg &&... arg) + template<typename... Arg> static SAL_WARN_UNUSED_RESULT VclPtr< reference_type > Create(Arg &&... arg) { return VclPtr< reference_type >( new reference_type(std::forward<Arg>(arg)...), SAL_NO_ACQUIRE ); } |