Code style fixes

Removed "void" from functions that take no parameters, removed a few
"get" prefixes, etc.
This commit is contained in:
Thorbjørn Lindeijer
2009-04-07 16:59:48 +02:00
parent 793de72a44
commit 8d774b19cd
20 changed files with 166 additions and 164 deletions

View File

@@ -199,9 +199,8 @@ ResourceView::ResourceView(QUndoStack *history, QWidget *parent) :
enableContextMenu(true);
}
ResourceView::~ResourceView(void)
ResourceView::~ResourceView()
{
}
void ResourceView::currentChanged(const QModelIndex &current, const QModelIndex &previous)
@@ -477,7 +476,7 @@ void ResourceView::onEditAlias()
changeAlias(index);
}
bool ResourceView::load(QString fileName)
bool ResourceView::load(const QString &fileName)
{
const QFileInfo fi(fileName);
m_qrcModel->setFileName(fi.absoluteFilePath());
@@ -488,7 +487,7 @@ bool ResourceView::load(QString fileName)
return m_qrcModel->reload();
}
bool ResourceView::save(void)
bool ResourceView::save()
{
return m_qrcModel->save();
}

View File

@@ -84,10 +84,10 @@ public:
};
ResourceView(QUndoStack *history, QWidget *parent = 0);
~ResourceView(void);
~ResourceView();
bool load(QString fileName);
bool save(void);
bool load(const QString &fileName);
bool save();
QString fileName() const;
void setFileName(const QString &fileName);
@@ -114,9 +114,9 @@ public:
bool defaultAddFileEnabled() const;
void findSamePlacePostDeletionModelIndex(int &row, QModelIndex &parent) const;
EntryBackup * removeEntry(const QModelIndex &index);
EntryBackup *removeEntry(const QModelIndex &index);
void addFiles(int prefixIndex, const QStringList &fileNames, int cursorFile,
int &firstFile, int &lastFile);
int &firstFile, int &lastFile);
void removeFiles(int prefixIndex, int firstFileIndex, int lastFileIndex);
QStringList fileNamesToAdd();
QModelIndex addPrefix();
@@ -158,8 +158,8 @@ public:
void changeValue(const QModelIndex &nodeIndex, NodeProperty property, const QString &value);
private:
void addUndoCommand(const QModelIndex &nodeIndex, NodeProperty property, const QString &before,
const QString &after);
void addUndoCommand(const QModelIndex &nodeIndex, NodeProperty property,
const QString &before, const QString &after);
QPoint m_releasePos;