Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fchn289 committed Feb 21, 2024
1 parent e61b129 commit 5eb9d9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/log/UniCoutLog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class UniCoutLog
void needLog() {}

static const UniLogName uniLogName() { return ULN_DEFAULT; }
static size_t nLog() { return 1; }
static shared_ptr<UniCoutLog> defaultUniLog(); // mem-safe than ret UniCoutLog&

// -------------------------------------------------------------------------------------------
Expand All @@ -52,7 +53,6 @@ class UniCoutLog
#ifdef RLIB_UT
public:
static size_t logLen(const UniLogName& = ULN_DEFAULT) { return nLogLine_; }
static size_t nLog() { return 1; }
static void reset_thenMemRisk() // for ut case clean at the end; mem-risk=use-after-free, so ut ONLY
{
defaultUniLog_.reset();
Expand Down
2 changes: 1 addition & 1 deletion src/log/UniSmartLog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class UniSmartLog
void needLog() { smartLog_->needLog(); } // flag to dump
const UniLogName& uniLogName() const { return uniLogName_; }

static size_t nLog() { return logStore_.size(); }
static shared_ptr<UniSmartLog> defaultUniLog(); // usage as if global cout; mem-safe than ret UniSmartLog&

private:
Expand All @@ -65,7 +66,6 @@ class UniSmartLog
? 0
: it->second->str().size();
}
static size_t nLog() { return logStore_.size(); }
static void reset_thenMemRisk() // for ut case clean at the end; mem-risk=use-after-free, so ut ONLY
{
defaultUniLog_.reset();
Expand Down

0 comments on commit 5eb9d9c

Please sign in to comment.