pyuno/source/module/pyuno_module.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 115e7a00c3ab2927b10e569e41d60230cba93dec
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sun Nov 19 17:32:21 2023 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sun Nov 19 20:39:16 2023 +0100

    Extended loplugin:ostr: pyuno
    
    Change-Id: Ie8ec1e8b3debd1501b16d40567a063390749a19b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159683
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/pyuno/source/module/pyuno_module.cxx 
b/pyuno/source/module/pyuno_module.cxx
index d91b608b6671..793aac834b1b 100644
--- a/pyuno/source/module/pyuno_module.cxx
+++ b/pyuno/source/module/pyuno_module.cxx
@@ -561,7 +561,7 @@ static PyObject *checkType( SAL_UNUSED_PARAMETER PyObject 
*, PyObject *args )
 {
     if( !PyTuple_Check( args ) || PyTuple_Size( args) != 1 )
     {
-        OString buf = "pyuno.checkType : expecting one uno.Type argument";
+        OString buf = "pyuno.checkType : expecting one uno.Type argument"_ostr;
         PyErr_SetString( PyExc_RuntimeError, buf.getStr() );
         return nullptr;
     }
@@ -584,7 +584,7 @@ static PyObject *checkEnum( SAL_UNUSED_PARAMETER PyObject 
*, PyObject *args )
 {
     if( !PyTuple_Check( args ) || PyTuple_Size( args) != 1 )
     {
-        OString buf = "pyuno.checkType : expecting one uno.Type argument";
+        OString buf = "pyuno.checkType : expecting one uno.Type argument"_ostr;
         PyErr_SetString( PyExc_RuntimeError, buf.getStr() );
         return nullptr;
     }
@@ -764,7 +764,7 @@ static PyObject * invoke(SAL_UNUSED_PARAMETER PyObject *, 
PyObject *args)
     }
     else
     {
-        OString buf = "uno.invoke expects object, name, (arg1, arg2, ... )\n";
+        OString buf = "uno.invoke expects object, name, (arg1, arg2, ... 
)\n"_ostr;
         PyErr_SetString(PyExc_RuntimeError, buf.getStr());
     }
     return ret;
@@ -816,7 +816,7 @@ static PyObject *setCurrentContext(
         }
         else
         {
-            OString buf = "uno.setCurrentContext expects exactly one argument 
(the current Context)\n";
+            OString buf = "uno.setCurrentContext expects exactly one argument 
(the current Context)\n"_ostr;
             PyErr_SetString(
                 PyExc_RuntimeError, buf.getStr() );
         }

Reply via email to