mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -32,7 +32,7 @@ class ArchiveCompressor;
|
||||
|
||||
|
||||
class Foundation_API ArchiveStrategy
|
||||
/// The ArchiveStrategy is used by FileChannel
|
||||
/// The ArchiveStrategy is used by FileChannel
|
||||
/// to rename a rotated log file for archiving.
|
||||
///
|
||||
/// Archived files can be automatically compressed,
|
||||
@@ -48,16 +48,16 @@ public:
|
||||
/// The given LogFile object is deleted.
|
||||
|
||||
void compress(bool flag = true);
|
||||
/// Enables or disables compression of archived files.
|
||||
/// Enables or disables compression of archived files.
|
||||
|
||||
protected:
|
||||
void moveFile(const std::string& oldName, const std::string& newName);
|
||||
bool exists(const std::string& name);
|
||||
|
||||
|
||||
private:
|
||||
ArchiveStrategy(const ArchiveStrategy&);
|
||||
ArchiveStrategy& operator = (const ArchiveStrategy&);
|
||||
|
||||
|
||||
bool _compress;
|
||||
ArchiveCompressor* _pCompressor;
|
||||
};
|
||||
@@ -84,11 +84,11 @@ public:
|
||||
ArchiveByTimestampStrategy()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
~ArchiveByTimestampStrategy()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
LogFile* archive(LogFile* pFile)
|
||||
/// Archives the file by appending the current timestamp to the
|
||||
/// file name. If the new file name exists, additionally a monotonic
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
std::string archPath = path;
|
||||
archPath.append(".");
|
||||
DateTimeFormatter::append(archPath, DT().timestamp(), "%Y%m%d%H%M%S%i");
|
||||
|
||||
|
||||
if (exists(archPath)) archiveByNumber(archPath);
|
||||
else moveFile(path, archPath);
|
||||
|
||||
@@ -121,7 +121,7 @@ private:
|
||||
NumberFormatter::append(path, ++n);
|
||||
}
|
||||
while (exists(path));
|
||||
|
||||
|
||||
while (n >= 0)
|
||||
{
|
||||
std::string oldPath = basePath;
|
||||
|
||||
Reference in New Issue
Block a user