summaryrefslogtreecommitdiff
path: root/forms/source/component/ListBox.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-08 08:28:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-08 11:15:40 +0200
commit1eaae3966db362b5094feee4ac9a462ee9993d90 (patch)
tree4a61c67ed97c37dea7e835d12929bb4a5e66cb13 /forms/source/component/ListBox.cxx
parent12215925202d6d540e4a22b93a8f49b4ec35c111 (diff)
loplugin:ostr in forms
Change-Id: Ifee5d86b54aa746dbd3b17ff966794f32fbc23bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167303 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/component/ListBox.cxx')
-rw-r--r--forms/source/component/ListBox.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 33d31180315c..33647f0ceb96 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -474,7 +474,7 @@ namespace frm
if ( ( pSelectedItemsPos != _rPropertyNames.end() ) && aStringItemListExists )
{
if (_rPropertyNames.getLength() != _rValues.getLength())
- throw css::lang::IllegalArgumentException("lengths do not match",
+ throw css::lang::IllegalArgumentException(u"lengths do not match"_ustr,
static_cast<cppu::OWeakObject*>(this), -1);
// both properties are present
@@ -795,7 +795,7 @@ namespace frm
{
// otherwise look for the alias
Reference< XColumnsSupplier > xSupplyFields;
- xFormProps->getPropertyValue("SingleSelectQueryComposer") >>= xSupplyFields;
+ xFormProps->getPropertyValue(u"SingleSelectQueryComposer"_ustr) >>= xSupplyFields;
// search the field
DBG_ASSERT(xSupplyFields.is(), "OListBoxModel::loadData : invalid query composer !");
@@ -815,7 +815,7 @@ namespace frm
Reference<XDatabaseMetaData> xMeta = xConnection->getMetaData();
OUString aQuote = xMeta->getIdentifierQuoteString();
- OUString aStatement("SELECT ");
+ OUString aStatement(u"SELECT "_ustr);
if (aBoundFieldName.isEmpty()) // act like a combobox
aStatement += "DISTINCT ";
@@ -920,7 +920,7 @@ namespace frm
try
{
Reference< XPropertySet > xBoundField( xColumns->getByIndex( *aBoundColumn ), UNO_QUERY_THROW );
- OSL_VERIFY( xBoundField->getPropertyValue("Type") >>= m_nBoundColumnType );
+ OSL_VERIFY( xBoundField->getPropertyValue(u"Type"_ustr) >>= m_nBoundColumnType );
}
catch( const Exception& )
{