diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 17:32:21 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 20:39:16 +0100 |
commit | 115e7a00c3ab2927b10e569e41d60230cba93dec (patch) | |
tree | 6b3340d97b14aa0b6e085035fd2168c15911d430 /pyuno | |
parent | c7526e303ff8113b6d4fdcc5b439b2ea2734cd51 (diff) |
Extended loplugin:ostr: pyuno
Change-Id: Ie8ec1e8b3debd1501b16d40567a063390749a19b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159683
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_module.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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() ); } |