[Libreoffice-commits] core.git: connectivity/source

Jason Burns (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 8 07:21:44 UTC 2019


 connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx |   11 +++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

New commits:
commit 642bd339576537d6561735273bda64dd44858960
Author:     Jason Burns <slapsquid at gmail.com>
AuthorDate: Sun Apr 7 21:23:58 2019 -0400
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Apr 8 09:21:23 2019 +0200

    tdf#112689: replace OUStringBuffer with OUString in one file
    
    Change-Id: I7fc32ad2bcbff4cd8bedea9bed49a0f4748ebe0f
    Reviewed-on: https://gerrit.libreoffice.org/70392
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
old mode 100644
new mode 100755
index ba8c36da83ce..49873f8e5841
--- a/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_resultsetmetadata.cxx
@@ -197,13 +197,10 @@ void OResultSetMetaData::checkColumnIndex(sal_Int32 columnIndex)
     auto nColCount = m_fields.size();
     if (columnIndex < 1 || columnIndex > static_cast<sal_Int32>(nColCount))
     {
-        OUStringBuffer buf;
-        buf.append("Column index out of range (expected 1 to ");
-        buf.append(sal_Int32(nColCount));
-        buf.append(", got ");
-        buf.append(columnIndex);
-        buf.append('.');
-        throw SQLException(buf.makeStringAndClear(), *this, OUString(), 1, Any());
+        OUString str = "Column index out of range (expected 1 to "
+                       + OUString::number(sal_Int32(nColCount)) + ", got "
+                       + OUString::number(columnIndex) + ".";
+        throw SQLException(str, *this, OUString(), 1, Any());
     }
 }
 


More information about the Libreoffice-commits mailing list