[Libreoffice-commits] core.git: include/vcl

Noel Grandin noel.grandin at collabora.co.uk
Sat Nov 26 05:20:21 UTC 2016


 include/vcl/vclptr.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8b920435c09a56bab35876d5e43a1e6098bf3dcf
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Fri Nov 25 15:42:29 2016 +0200

    mark VclPtr::Create as SAL_WARN_UNUSED_RESULT
    
    Change-Id: I7b5bb8a0ed8848c9e426d2015983156e34947914
    Reviewed-on: https://gerrit.libreoffice.org/31202
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/vcl/vclptr.hxx b/include/vcl/vclptr.hxx
index f56e006..ab57dfa 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 );
     }


More information about the Libreoffice-commits mailing list