Skip to content

Commit e20377f

Browse files
committed
Lint
1 parent f44fc45 commit e20377f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

trantor/utils/AsyncFileLogger.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ AsyncFileLogger::~AsyncFileLogger()
6464
}
6565
while (!writeBuffers_.empty())
6666
{
67-
StringPtr tmpPtr = (StringPtr &&)writeBuffers_.front();
67+
StringPtr tmpPtr = (StringPtr &&) writeBuffers_.front();
6868
writeBuffers_.pop();
6969
writeLogToFile(tmpPtr);
7070
}
@@ -162,7 +162,7 @@ void AsyncFileLogger::logThreadFunc()
162162

163163
while (!tmpBuffers_.empty())
164164
{
165-
StringPtr tmpPtr = (StringPtr &&)tmpBuffers_.front();
165+
StringPtr tmpPtr = (StringPtr &&) tmpBuffers_.front();
166166
tmpBuffers_.pop();
167167
writeLogToFile(tmpPtr);
168168
tmpPtr->clear();

trantor/utils/Logger.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ class TRANTOR_EXPORT Logger : public NonCopyable
288288
#endif
289289
return logLevel;
290290
}
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_()
293293
{
294294
static std::function<void(const char *msg, const uint64_t len)>
295295
outputFunc = Logger::defaultOutputFunction;
@@ -300,8 +300,8 @@ class TRANTOR_EXPORT Logger : public NonCopyable
300300
static std::function<void()> flushFunc = Logger::defaultFlushFunction;
301301
return flushFunc;
302302
}
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)
305305
{
306306
static std::vector<
307307
std::function<void(const char *msg, const uint64_t len)>>

0 commit comments

Comments
 (0)