summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-10 12:14:01 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-10 12:16:48 +0200
commita076feda8e6541ce611866e3f20f65648ec2b50b (patch)
tree4151bcb98980db1669174e0628f3395522d9b950
parent0cc4e711d3d4dd9cf512ef490fabf8395eb46d3f (diff)
Follow the coding style of surrounding code
Change-Id: I80a2d935d92c8330f3815b6e79ccc58bc39541b0
-rw-r--r--vcl/win/gdi/winlayout.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 691901eac2cf..31168bc78909 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -3673,8 +3673,10 @@ bool D2DWriteTextOutRenderer::InitModules()
void D2DWriteTextOutRenderer::CleanupModules()
{
- if (mmD2d1) FreeLibrary(mmD2d1);
- if (mmDWrite) FreeLibrary(mmDWrite);
+ if (mmD2d1)
+ FreeLibrary(mmD2d1);
+ if (mmDWrite)
+ FreeLibrary(mmDWrite);
mmD2d1 = nullptr;
mmDWrite = nullptr;
@@ -3741,10 +3743,14 @@ D2DWriteTextOutRenderer::D2DWriteTextOutRenderer()
D2DWriteTextOutRenderer::~D2DWriteTextOutRenderer()
{
- if (mpRT) mpRT->Release();
- if (mpGdiInterop) mpGdiInterop->Release();
- if (mpDWriteFactory) mpDWriteFactory->Release();
- if (mpD2DFactory) mpD2DFactory->Release();
+ if (mpRT)
+ mpRT->Release();
+ if (mpGdiInterop)
+ mpGdiInterop->Release();
+ if (mpDWriteFactory)
+ mpDWriteFactory->Release();
+ if (mpD2DFactory)
+ mpD2DFactory->Release();
CleanupModules();
}