diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-24 10:15:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-24 10:19:43 +0200 |
commit | 4f7586a61e078ed8944d7f85697c809c4bd0d676 (patch) | |
tree | e2c00668ed89d01c31c996df03754206668ab9da /vcl/source | |
parent | 3b3cfa0e016de7712200785bc70ef2d6a5877113 (diff) |
prevent unused warning in release build
i.e. where asserts are disabled
Change-Id: Ic47b0a65bf729ba2cc9460a6a4bf1bbbc06f34da
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/impimagetree.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx index 8955902039fe..59b99dca37e0 100644 --- a/vcl/source/gdi/impimagetree.cxx +++ b/vcl/source/gdi/impimagetree.cxx @@ -258,6 +258,7 @@ bool ImplImageTree::findImage(std::vector<OUString> const & paths, BitmapEx & bi css::uno::Reference< css::io::XInputStream > s; bool ok = rNameAccess->getByName(*j) >>= s; assert(ok); + (void)ok; // prevent unused warning in release build loadImageFromStream( wrapStream(s), *j, bitmap ); return true; @@ -280,6 +281,7 @@ void ImplImageTree::loadImageLinks() css::uno::Reference< css::io::XInputStream > s; bool ok = rNameAccess->getByName(aLinkFilename) >>= s; assert(ok); + (void)ok; // prevent unused warning in release build parseLinkFile( wrapStream(s) ); return; |