Kaydet (Commit) 642bd339 authored tarafından Jason Burns's avatar Jason Burns Kaydeden (comit) Noel Grandin

tdf#112689: replace OUStringBuffer with OUString in one file

Change-Id: I7fc32ad2bcbff4cd8bedea9bed49a0f4748ebe0f
Reviewed-on: https://gerrit.libreoffice.org/70392
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 7be675cd
......@@ -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());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment