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

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 13 13:38:37 UTC 2020


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

New commits:
commit b195b98587c61fb8a3b9f12f24a8430e3455ce38
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Mar 13 11:33:02 2020 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Mar 13 14:38:02 2020 +0100

    vcl: warn about unused GraphicConversionParameters instances
    
    I just made the mistake of creating one but then forgetting to use it,
    warn about that.
    
    Change-Id: Ie7e6e34eb234468d4a255e438b9551c81a9d2fe2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90459
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index 6986f5f9b0b1..6030f3058a76 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -50,7 +50,7 @@ class ImpGraphic;
 class OutputDevice;
 class GraphicReader;
 
-class VCL_DLLPUBLIC GraphicConversionParameters
+class SAL_WARN_UNUSED VCL_DLLPUBLIC GraphicConversionParameters
 {
 private:
     Size const            maSizePixel;            // default is (0,0)


More information about the Libreoffice-commits mailing list