diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-04-27 20:43:37 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-04-28 00:49:02 +0200 |
commit | ee57d5253a2ee054b06a4158204bda1a8fc3b5dc (patch) | |
tree | 5abe2e3e3239d354aca2975e831dbe6fa7a9f2c7 /vcl/source/outdev | |
parent | e300e8fbe891e23777ce95556488010f6f59c0e6 (diff) |
Minimize scope of variables
Change-Id: I6602c84b9bd7143e5e7b224c17559b083c9b7f9c
Reviewed-on: https://gerrit.libreoffice.org/71439
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/text.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index 68b7a4ffc250..fb3092739ffc 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -1264,14 +1264,15 @@ std::unique_ptr<SalLayout> OutputDevice::ImplLayout(const OUString& rOrigStr, pLayoutCache = nullptr; // don't use cache with modified string! pGlyphs = nullptr; } + DeviceCoordinate nPixelWidth = static_cast<DeviceCoordinate>(nLogicalWidth); - std::unique_ptr<DeviceCoordinate[]> xDXPixelArray; - DeviceCoordinate* pDXPixelArray(nullptr); if( nLogicalWidth && mbMap ) { nPixelWidth = LogicWidthToDeviceCoordinate( nLogicalWidth ); } + std::unique_ptr<DeviceCoordinate[]> xDXPixelArray; + DeviceCoordinate* pDXPixelArray(nullptr); if( pDXArray) { if(mbMap) |