cvs: polish style

Change-Id: Ica92448617e46223f99a5009e4a7493b83d4cda9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
hjk
2012-01-07 16:55:09 +01:00
parent 745c58befa
commit 7986fbd08d
33 changed files with 572 additions and 570 deletions

View File

@@ -39,23 +39,23 @@ QT_BEGIN_NAMESPACE
class QSettings;
QT_END_NAMESPACE
namespace CVS {
namespace Cvs {
namespace Internal {
struct CVSSettings
struct CvsSettings
{
CVSSettings();
CvsSettings();
void fromSettings(QSettings *);
void toSettings(QSettings *) const;
inline int timeOutMS() const { return timeOutS * 1000; }
inline int longTimeOutMS() const { return timeOutS * 10000; }
int timeOutMS() const { return timeOutS * 1000; }
int longTimeOutMS() const { return timeOutS * 10000; }
// Add common options to the command line
QStringList addOptions(const QStringList &args) const;
bool equals(const CVSSettings &s) const;
bool equals(const CvsSettings &s) const;
QString cvsCommand;
QString cvsRoot;
@@ -65,12 +65,12 @@ struct CVSSettings
bool describeByCommitId;
};
inline bool operator==(const CVSSettings &p1, const CVSSettings &p2)
inline bool operator==(const CvsSettings &p1, const CvsSettings &p2)
{ return p1.equals(p2); }
inline bool operator!=(const CVSSettings &p1, const CVSSettings &p2)
inline bool operator!=(const CvsSettings &p1, const CvsSettings &p2)
{ return !p1.equals(p2); }
} // namespace Internal
} // namespace CVS
} // namespace Cvs
#endif // CVSSETTINGS_H