diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-17 10:49:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-17 10:55:02 +0100 |
commit | 379fe0409e7973b36210cffa3dd1dfd4032f0ecc (patch) | |
tree | 8364b8ebb3f6e4fd600e63b3fc331899fd8a7d05 /writerfilter/source/dmapper/FormControlHelper.cxx | |
parent | a3db321ecb1cf9f8c08476ecc699931b6111bc21 (diff) |
Assume that this code wants to append a number, not a character
The original code in 2638faa2e834c2da4c195224fd88d32c29b3d0cc
"writerfilter08ooo330: applied patch for writerfilter08" used OUString::valueOf,
which 64b993e046f23baaacaff1572b7d2a816588b5ef "finish deprecation of
O(U)String::valueOf()" changed to a OUString ctor instead of OUString::number
(as that change did for almost all other cases), but without giving a rationale
for this particular case. But as nUnique starts out as zero, so in the first
round would append a NUL character to "DOCX-Standard", it looks plausible that
this code should add a number after all.
Change-Id: I47136486e28b946fa334a416d1d2fe20ad616ff0
Diffstat (limited to 'writerfilter/source/dmapper/FormControlHelper.cxx')
-rw-r--r-- | writerfilter/source/dmapper/FormControlHelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/FormControlHelper.cxx b/writerfilter/source/dmapper/FormControlHelper.cxx index c35edcfce1f1..abcdc9f680c0 100644 --- a/writerfilter/source/dmapper/FormControlHelper.cxx +++ b/writerfilter/source/dmapper/FormControlHelper.cxx @@ -98,7 +98,7 @@ uno::Reference<form::XForm> FormControlHelper::FormControlHelper_Impl::getForm() { ++nUnique; sFormName = sDOCXForm; - sFormName += OUString(nUnique); + sFormName += OUString::number(nUnique); } uno::Reference<uno::XInterface> xForm(getServiceFactory()->createInstance("com.sun.star.form.component.Form")); |