From 7667525aa78b803b52b62b1bbb907c2822692e89 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 23 Jul 2020 10:00:32 +0200 Subject: Describe intended usage Change-Id: Id2314304a42f762553ac6bb1d15fe80bee653b25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99207 Tested-by: Tor Lillqvist Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- vcl/source/bitmap/bitmap.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vcl') diff --git a/vcl/source/bitmap/bitmap.cxx b/vcl/source/bitmap/bitmap.cxx index 0dae9d5ace4f..4da73a65d3cc 100644 --- a/vcl/source/bitmap/bitmap.cxx +++ b/vcl/source/bitmap/bitmap.cxx @@ -135,6 +135,8 @@ Bitmap::~Bitmap() #ifdef DBG_UTIL // VCL_DUMP_BMP_PATH should be like C:/bmpDump.png or ~/bmpDump.png static const OUString sDumpPath(OUString::createFromAscii(std::getenv("VCL_DUMP_BMP_PATH"))); + // Stepping into the dtor of a bitmap you need, and setting the volatile variable to true in + // debugger, would dump the bitmap in question static volatile bool save(false); if (!sDumpPath.isEmpty() && save) { -- cgit v1.2.3