commit b859ff5f2a82aa86252171ec0738ac69b34247a9
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Sun Jun 22 23:31:58 2025 +0200
Remove useless .c_str()
Spotted by cppcheck.
---
src/TextClass.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index b24afea19b..235972f277 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -857,7 +857,7 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc,
ReadType rt)
if (name.empty()) {
string s = "Could not read name for
counter: `$$Token' "
+ lexrc.getString() + "
is probably not valid UTF-8!";
- lexrc.printError(s.c_str());
+ lexrc.printError(s);
Counter c;
// Since we couldn't read the name, we
just scan the rest
// and discard it.
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs