diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2024-03-12 12:07:33 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-03-22 05:50:07 +0100 |
commit | 4dd52211794adc7da2c19cb3defcdef16985c278 (patch) | |
tree | 8a3ad67af83d5dd830f4444f80b9266944042ce9 /vcl/inc/impgraph.hxx | |
parent | 805dd6bee49164d9a77de4ea9e0d53b416daca7a (diff) |
vcl: simplify constructors of ImpGraphic
Change-Id: I6df0da16d777549e6187327271868774498d073b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164694
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc/impgraph.hxx')
-rw-r--r-- | vcl/inc/impgraph.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx index 15d68d00157c..9ef10d19061d 100644 --- a/vcl/inc/impgraph.hxx +++ b/vcl/inc/impgraph.hxx @@ -73,19 +73,20 @@ private: std::shared_ptr<GraphicReader> mpContext; std::shared_ptr<ImpSwapFile> mpSwapFile; std::shared_ptr<GfxLink> mpGfxLink; - GraphicType meType; - mutable sal_uLong mnSizeBytes; - bool mbSwapOut; - bool mbDummyContext; std::shared_ptr<VectorGraphicData> maVectorGraphicData; + + GraphicType meType = GraphicType::NONE; + mutable sal_uLong mnSizeBytes = 0; + bool mbSwapOut = false; + bool mbDummyContext = false; // cache checksum computation mutable BitmapChecksum mnChecksum = 0; std::optional<GraphicID> mxGraphicID; GraphicExternalLink maGraphicExternalLink; - std::chrono::high_resolution_clock::time_point maLastUsed; - bool mbPrepared; + mutable std::chrono::high_resolution_clock::time_point maLastUsed = std::chrono::high_resolution_clock::now(); + bool mbPrepared = false; public: ImpGraphic(); |