mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user