vcl/source/gdi/CommonSalLayout.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 4ca60788fbea3614c40ae68356c03ee6a8053054 Author: Khaled Hosny <khaledho...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits