[Libreoffice-commits] core.git: Branch 'feature/commonsallayout' - vcl/source
Khaled Hosny
khaledhosny at eglug.org
Fri Sep 23 12:01:18 UTC 2016
vcl/source/gdi/CommonSalLayout.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 4ca60788fbea3614c40ae68356c03ee6a8053054
Author: Khaled Hosny <khaledhosny at eglug.org>
Date: Fri Sep 23 13:59:47 2016 +0200
Fix MSVC build
Change-Id: I77fc58c1c24577e20ef54d9fdd7d6cb81c5127cd
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 0c3177a..38d6117 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -503,10 +503,10 @@ bool CommonSalLayout::GetCharWidths(DeviceCoordinate* pCharWidths) const
void CommonSalLayout::ApplyDXArray(ImplLayoutArgs& rArgs)
{
int nCharCount = mnEndCharPos - mnMinCharPos;
- DeviceCoordinate pOldCharWidths[nCharCount];
- DeviceCoordinate pNewCharWidths[nCharCount];
+ std::unique_ptr<DeviceCoordinate[]> const pOldCharWidths(new DeviceCoordinate[nCharCount]);
+ std::unique_ptr<DeviceCoordinate[]> const pNewCharWidths(new DeviceCoordinate[nCharCount]);
- GetCharWidths(pOldCharWidths);
+ GetCharWidths(pOldCharWidths.get());
for (int i = 0; i < nCharCount; ++i)
{
More information about the Libreoffice-commits
mailing list