Remove trailing whitespace (#3668)

This commit is contained in:
John Vandenberg
2022-07-07 17:18:20 +08:00
committed by GitHub
parent 0af9524e16
commit 0e6e16645c
1330 changed files with 23570 additions and 23571 deletions

View File

@@ -42,7 +42,7 @@ public:
virtual bool mustRotate(LogFile* pFile) = 0;
/// Returns true if the given log file must
/// be rotated, false otherwise.
private:
RotateStrategy(const RotateStrategy&);
RotateStrategy& operator = (const RotateStrategy&);
@@ -55,14 +55,14 @@ class RotateAtTimeStrategy: public RotateStrategy
{
public:
RotateAtTimeStrategy(const std::string& rtime):
_day(-1),
_hour(-1),
_day(-1),
_hour(-1),
_minute(0)
{
if (rtime.empty())
if (rtime.empty())
throw InvalidArgumentException("Rotation time must be specified.");
if ((rtime.find(',') != rtime.npos) && (rtime.find(':') == rtime.npos))
if ((rtime.find(',') != rtime.npos) && (rtime.find(':') == rtime.npos))
throw InvalidArgumentException("Invalid rotation time specified.");
StringTokenizer timestr(rtime, ",:", StringTokenizer::TOK_TRIM | StringTokenizer::TOK_IGNORE_EMPTY);
@@ -87,11 +87,11 @@ public:
}
getNextRollover();
}
~RotateAtTimeStrategy()
{
}
bool mustRotate(LogFile* /*pFile*/)
{
if (DT() >= _threshold)
@@ -111,7 +111,7 @@ private:
_threshold += tsp;
}
while (!(_threshold.minute() == _minute &&
(-1 == _hour || _threshold.hour() == _hour) &&
(-1 == _hour || _threshold.hour() == _hour) &&
(-1 == _day || _threshold.dayOfWeek() == _day)));
// round to :00.0 seconds
_threshold.assign(_threshold.year(), _threshold.month(), _threshold.day(), _threshold.hour(), _threshold.minute());
@@ -125,7 +125,7 @@ private:
class Foundation_API RotateByIntervalStrategy: public RotateStrategy
/// The file is rotated when the log file
/// The file is rotated when the log file
/// exceeds a given age.
///
/// For this to work reliably across all platforms and file systems