CVS: Modernize

* Use pragma once
* Use some more overrides
* Tiny clean-ups here and there

Change-Id: I951afa8ed31c5f414d4ae872c79f80db19909ee0
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2016-02-04 13:07:35 +01:00
parent bc9c57756b
commit eb07fd92b2
19 changed files with 42 additions and 165 deletions

View File

@@ -25,31 +25,17 @@
#include "cvsutils.h"
#include <QDebug>
#include <QRegExp>
#include <QStringList>
namespace Cvs {
namespace Internal {
CvsRevision::CvsRevision(const QString &rev) :
revision(rev)
{
}
CvsRevision::CvsRevision(const QString &rev) : revision(rev)
{ }
CvsLogEntry::CvsLogEntry(const QString &f) :
file(f)
{
}
QDebug operator<<(QDebug d, const CvsLogEntry &e)
{
QDebug nospace = d.nospace();
nospace << "File: " << e.file << e.revisions.size() << '\n';
foreach (const CvsRevision &r, e.revisions)
nospace << " " << r.revision << ' ' << r.date << ' ' << r.commitId << '\n';
return d;
}
CvsLogEntry::CvsLogEntry(const QString &f) : file(f)
{ }
/* Parse:
\code