File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ AsyncFileLogger::~AsyncFileLogger()
64
64
}
65
65
while (!writeBuffers_.empty ())
66
66
{
67
- StringPtr tmpPtr = (StringPtr &&)writeBuffers_.front ();
67
+ StringPtr tmpPtr = (StringPtr &&) writeBuffers_.front ();
68
68
writeBuffers_.pop ();
69
69
writeLogToFile (tmpPtr);
70
70
}
@@ -162,7 +162,7 @@ void AsyncFileLogger::logThreadFunc()
162
162
163
163
while (!tmpBuffers_.empty ())
164
164
{
165
- StringPtr tmpPtr = (StringPtr &&)tmpBuffers_.front ();
165
+ StringPtr tmpPtr = (StringPtr &&) tmpBuffers_.front ();
166
166
tmpBuffers_.pop ();
167
167
writeLogToFile (tmpPtr);
168
168
tmpPtr->clear ();
Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ class TRANTOR_EXPORT Logger : public NonCopyable
288
288
#endif
289
289
return logLevel;
290
290
}
291
- static std::function<void (const char *msg, const uint64_t len)> &
292
- outputFunc_()
291
+ static std::function<void (const char *msg, const uint64_t len)>
292
+ & outputFunc_()
293
293
{
294
294
static std::function<void (const char *msg, const uint64_t len)>
295
295
outputFunc = Logger::defaultOutputFunction;
@@ -300,8 +300,8 @@ class TRANTOR_EXPORT Logger : public NonCopyable
300
300
static std::function<void ()> flushFunc = Logger::defaultFlushFunction;
301
301
return flushFunc;
302
302
}
303
- static std::function<void (const char *msg, const uint64_t len)> &
304
- outputFunc_ (size_t index)
303
+ static std::function<void (const char *msg, const uint64_t len)>
304
+ & outputFunc_ (size_t index)
305
305
{
306
306
static std::vector<
307
307
std::function<void (const char *msg, const uint64_t len)>>
You can’t perform that action at this time.
0 commit comments