Coding style fixes.

This commit is contained in:
Felix Geyer 2012-05-02 17:04:03 +02:00
parent f89a2a4045
commit 739f4d97a6
10 changed files with 14 additions and 14 deletions

View File

@ -377,7 +377,7 @@ QList<Entry*> Group::entriesRecursive(bool includeHistoryItems)
return entryList;
}
void Group::addEntry(Entry *entry)
void Group::addEntry(Entry* entry)
{
Q_ASSERT(entry);
Q_ASSERT(!m_entries.contains(entry));

View File

@ -134,7 +134,7 @@ private:
friend void Database::setRootGroup(Group* group);
friend Entry::~Entry();
friend void Entry::setGroup(Group *group);
friend void Entry::setGroup(Group* group);
};
#endif // KEEPASSX_GROUP_H

View File

@ -605,7 +605,7 @@ Entry* KeePass2XmlReader::parseEntry(bool history)
return entry;
}
void KeePass2XmlReader::parseEntryString(Entry *entry)
void KeePass2XmlReader::parseEntryString(Entry* entry)
{
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "String");
@ -638,7 +638,7 @@ void KeePass2XmlReader::parseEntryString(Entry *entry)
}
}
void KeePass2XmlReader::parseEntryBinary(Entry *entry)
void KeePass2XmlReader::parseEntryBinary(Entry* entry)
{
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "Binary");
@ -696,7 +696,7 @@ void KeePass2XmlReader::parseAutoType(Entry* entry)
}
}
void KeePass2XmlReader::parseAutoTypeAssoc(Entry *entry)
void KeePass2XmlReader::parseAutoTypeAssoc(Entry* entry)
{
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "Association");

View File

@ -26,7 +26,7 @@ DialogyWidget::DialogyWidget(QWidget* parent)
{
}
void DialogyWidget::keyPressEvent(QKeyEvent *e)
void DialogyWidget::keyPressEvent(QKeyEvent* e)
{
#ifdef Q_WS_MAC
if (e->modifiers() == Qt::ControlModifier && e->key() == Qt::Key_Period) {

View File

@ -29,7 +29,7 @@ public:
explicit DialogyWidget(QWidget* parent = 0);
protected:
virtual void keyPressEvent(QKeyEvent *e);
virtual void keyPressEvent(QKeyEvent* e);
private:
bool clickButton(QDialogButtonBox::StandardButton standardButton);

View File

@ -26,7 +26,7 @@
class CategoryListViewDelegate : public QStyledItemDelegate
{
public:
explicit CategoryListViewDelegate(QObject *parent) : QStyledItemDelegate(parent) {}
explicit CategoryListViewDelegate(QObject* parent) : QStyledItemDelegate(parent) {}
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const
{

View File

@ -170,7 +170,7 @@ void MainWindow::showAboutDialog()
aboutDialog->show();
}
void MainWindow::closeEvent(QCloseEvent *event) {
void MainWindow::closeEvent(QCloseEvent* event) {
if (!m_ui->tabWidget->closeAllDatabases()) {
event->ignore();
}

View File

@ -36,7 +36,7 @@ public:
void openDatabase(const QString& fileName, const QString& pw, const QString& keyFile);
protected:
void closeEvent(QCloseEvent *event);
void closeEvent(QCloseEvent* event);
private Q_SLOTS:
void setMenuActionState(DatabaseWidget::Mode mode = DatabaseWidget::None);

View File

@ -215,7 +215,7 @@ QByteArray FileKey::loadXmlKey(QXmlStreamReader& xmlReader)
return data;
}
bool FileKey::loadBinary(QIODevice *device)
bool FileKey::loadBinary(QIODevice* device)
{
if (device->size() != 32) {
return false;
@ -225,7 +225,7 @@ bool FileKey::loadBinary(QIODevice *device)
return true;
}
bool FileKey::loadHex(QIODevice *device)
bool FileKey::loadHex(QIODevice* device)
{
if (device->size() != 64) {
return false;
@ -247,7 +247,7 @@ bool FileKey::loadHex(QIODevice *device)
return true;
}
bool FileKey::loadHashed(QIODevice *device)
bool FileKey::loadHashed(QIODevice* device)
{
CryptoHash cryptoHash(CryptoHash::Sha256);

View File

@ -24,7 +24,7 @@
#include "keys/CompositeKey.h"
#include "keys/PasswordKey.h"
int main(int argc, char **argv)
int main(int argc, char** argv)
{
QApplication app(argc, argv);
// don't set applicationName or organizationName as that changes