diff options
Diffstat (limited to 'icetray/unittests/testIceTrayLogger.cpp')
-rw-r--r-- | icetray/unittests/testIceTrayLogger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/icetray/unittests/testIceTrayLogger.cpp b/icetray/unittests/testIceTrayLogger.cpp index 393a6f2..b8c9d5c 100644 --- a/icetray/unittests/testIceTrayLogger.cpp +++ b/icetray/unittests/testIceTrayLogger.cpp @@ -34,9 +34,9 @@ class TestLogWriter : public AbstractLogWriter { { } - void message(LogLevel priority, Domain domain, std::string message, const Ice::Current &) override + void message(LogLevel priority, Domain domain, const std::string_view message, const Ice::Current &) override { - msgs.push_back({priority, domain, message}); + msgs.push_back({priority, domain, std::string(message)}); } std::vector<LogEntry> msgs; |