Pedantic
svn path=/trunk/playground/sysadmin/partitionmanager/; revision=864677
This commit is contained in:
parent
795e001a14
commit
4d1c7f2d04
|
@ -36,7 +36,7 @@ class CopyTarget;
|
|||
*/
|
||||
class CopySource
|
||||
{
|
||||
Q_DISABLE_COPY(CopySource);
|
||||
Q_DISABLE_COPY(CopySource)
|
||||
|
||||
protected:
|
||||
CopySource() {}
|
||||
|
|
|
@ -35,7 +35,7 @@ class QString;
|
|||
*/
|
||||
class CopyTarget
|
||||
{
|
||||
Q_DISABLE_COPY(CopyTarget);
|
||||
Q_DISABLE_COPY(CopyTarget)
|
||||
|
||||
protected:
|
||||
CopyTarget() : m_SectorsWritten(0) {}
|
||||
|
|
|
@ -40,7 +40,7 @@ class CreatePartitionTableOperation;
|
|||
class Device : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(Device);
|
||||
Q_DISABLE_COPY(Device)
|
||||
|
||||
friend class CreatePartitionTableOperation;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class OperationStack;
|
|||
*/
|
||||
class LibParted
|
||||
{
|
||||
Q_DISABLE_COPY(LibParted);
|
||||
Q_DISABLE_COPY(LibParted)
|
||||
|
||||
public:
|
||||
LibParted();
|
||||
|
|
|
@ -38,7 +38,7 @@ class Report;
|
|||
class OperationRunner : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(OperationRunner);
|
||||
Q_DISABLE_COPY(OperationRunner)
|
||||
|
||||
public:
|
||||
OperationRunner(OperationStack& ostack);
|
||||
|
|
|
@ -38,7 +38,7 @@ class Operation;
|
|||
*/
|
||||
class OperationStack
|
||||
{
|
||||
Q_DISABLE_COPY(OperationStack);
|
||||
Q_DISABLE_COPY(OperationStack)
|
||||
|
||||
friend class LibParted;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ class PartitionRole
|
|||
Any = 255 /**< In case we're looking for a Partition with a PartitionRole, any will do */
|
||||
};
|
||||
|
||||
Q_DECLARE_FLAGS(Roles, Role);
|
||||
Q_DECLARE_FLAGS(Roles, Role)
|
||||
|
||||
public:
|
||||
explicit PartitionRole(Roles r) : m_Roles(r) {} /**< Creates a new PartitionRole object */
|
||||
|
@ -62,6 +62,6 @@ class PartitionRole
|
|||
Roles m_Roles;
|
||||
};
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(PartitionRole::Roles);
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(PartitionRole::Roles)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -42,7 +42,7 @@ class LibParted;
|
|||
*/
|
||||
class PartitionTable : public PartitionNode
|
||||
{
|
||||
Q_DISABLE_COPY(PartitionTable);
|
||||
Q_DISABLE_COPY(PartitionTable)
|
||||
|
||||
friend class LibParted;
|
||||
|
||||
|
@ -64,7 +64,7 @@ class PartitionTable : public PartitionNode
|
|||
FlagMsftReserved = 1024
|
||||
};
|
||||
|
||||
Q_DECLARE_FLAGS(Flags, Flag);
|
||||
Q_DECLARE_FLAGS(Flags, Flag)
|
||||
|
||||
public:
|
||||
PartitionTable();
|
||||
|
@ -121,7 +121,7 @@ class PartitionTable : public PartitionNode
|
|||
bool m_ReadOnly;
|
||||
};
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(PartitionTable::Flags);
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(PartitionTable::Flags)
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -38,7 +38,7 @@ class Report;
|
|||
*/
|
||||
class FileSystem
|
||||
{
|
||||
Q_DISABLE_COPY(FileSystem);
|
||||
Q_DISABLE_COPY(FileSystem)
|
||||
|
||||
public:
|
||||
/** Supported FileSystem types */
|
||||
|
@ -73,7 +73,7 @@ class FileSystem
|
|||
SupportExternal = 4 /**< supported by some external command */
|
||||
};
|
||||
|
||||
Q_DECLARE_FLAGS(SupportTypes, SupportType);
|
||||
Q_DECLARE_FLAGS(SupportTypes, SupportType)
|
||||
|
||||
protected:
|
||||
FileSystem(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, FileSystem::Type t);
|
||||
|
@ -150,6 +150,6 @@ class FileSystem
|
|||
QString m_Label;
|
||||
};
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(FileSystem::SupportTypes);
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(FileSystem::SupportTypes)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -47,7 +47,7 @@ class Report;
|
|||
class Job : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(Job);
|
||||
Q_DISABLE_COPY(Job)
|
||||
|
||||
public:
|
||||
/** Status of this Job */
|
||||
|
|
|
@ -73,7 +73,7 @@ class QIcon;
|
|||
class Operation : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(Operation);
|
||||
Q_DISABLE_COPY(Operation)
|
||||
|
||||
friend class OperationStack;
|
||||
friend class OperationRunner;
|
||||
|
|
|
@ -37,7 +37,7 @@ class Report;
|
|||
class ExternalCommand : public QProcess
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(ExternalCommand);
|
||||
Q_DISABLE_COPY(ExternalCommand)
|
||||
|
||||
public:
|
||||
explicit ExternalCommand(const QString& cmd = QString(), const QStringList& args = QStringList());
|
||||
|
|
|
@ -52,7 +52,7 @@ class log
|
|||
class GlobalLog : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(GlobalLog);
|
||||
Q_DISABLE_COPY(GlobalLog)
|
||||
|
||||
friend class log;
|
||||
friend log operator<<(log l, const QString& s);
|
||||
|
|
|
@ -37,7 +37,7 @@ class ReportLine;
|
|||
class Report : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(Report);
|
||||
Q_DISABLE_COPY(Report)
|
||||
|
||||
friend Report& operator<<(Report& report, const QString& s);
|
||||
friend Report& operator<<(Report& report, qint64 i);
|
||||
|
|
Loading…
Reference in New Issue