Coding style fixes.

This commit is contained in:
Felix Geyer 2012-05-15 17:48:48 +02:00
parent 0c7e1f1a6b
commit b90807c4d3
7 changed files with 10 additions and 12 deletions

View File

@ -126,7 +126,7 @@ public:
void setGroup(Group* group); void setGroup(Group* group);
void setUpdateTimeinfo(bool value); void setUpdateTimeinfo(bool value);
bool match(const QString &searchTerm, Qt::CaseSensitivity caseSensitivity); bool match(const QString& searchTerm, Qt::CaseSensitivity caseSensitivity);
Q_SIGNALS: Q_SIGNALS:
/** /**

View File

@ -18,7 +18,7 @@
#include "EditWidget.h" #include "EditWidget.h"
#include "ui_EditWidget.h" #include "ui_EditWidget.h"
EditWidget::EditWidget(QWidget *parent) EditWidget::EditWidget(QWidget* parent)
: DialogyWidget(parent) : DialogyWidget(parent)
, m_ui(new Ui::EditWidget()) , m_ui(new Ui::EditWidget())
{ {
@ -50,4 +50,3 @@ QLabel* EditWidget::headlineLabel()
{ {
return m_ui->headerLabel; return m_ui->headerLabel;
} }

View File

@ -21,8 +21,7 @@
#include <QtCore/QScopedPointer> #include <QtCore/QScopedPointer>
#include <QtGui/QLabel> #include <QtGui/QLabel>
#include <gui/DialogyWidget.h> #include "gui/DialogyWidget.h"
namespace Ui { namespace Ui {
class EditWidget; class EditWidget;
@ -33,7 +32,7 @@ class EditWidget : public DialogyWidget
Q_OBJECT Q_OBJECT
public: public:
explicit EditWidget(QWidget *parent = 0); explicit EditWidget(QWidget* parent = 0);
~EditWidget(); ~EditWidget();
void add(const QString& labelText, QWidget* widget); void add(const QString& labelText, QWidget* widget);

View File

@ -251,7 +251,7 @@ void EntryModel::severConnections()
} }
} }
void EntryModel::makeConnections(const Group *group) void EntryModel::makeConnections(const Group* group)
{ {
connect(group, SIGNAL(entryAboutToAdd(Entry*)), SLOT(entryAboutToAdd(Entry*))); connect(group, SIGNAL(entryAboutToAdd(Entry*)), SLOT(entryAboutToAdd(Entry*)));
connect(group, SIGNAL(entryAdded()), SLOT(entryAdded())); connect(group, SIGNAL(entryAdded()), SLOT(entryAdded()));

View File

@ -152,7 +152,7 @@ bool FileKey::create(const QString& fileName, QString* errorMsg)
} }
} }
bool FileKey::loadXml(QIODevice *device) bool FileKey::loadXml(QIODevice* device)
{ {
QXmlStreamReader xmlReader(device); QXmlStreamReader xmlReader(device);

View File

@ -29,16 +29,16 @@
namespace QTest { namespace QTest {
template<> template<>
char *toString(const Uuid &uuid) char* toString(const Uuid& uuid)
{ {
QByteArray ba = "Uuid("; QByteArray ba = "Uuid(";
ba += uuid.toBase64().toAscii().constData(); ba += uuid.toBase64().toAscii().constData();
ba += ")"; ba += ")";
return qstrdup(ba.data()); return qstrdup(ba.constData());
} }
template<> template<>
char *toString(const Group::TriState &triState) char* toString(const Group::TriState& triState)
{ {
QString value; QString value;

View File

@ -21,7 +21,7 @@
#include <QtTest/QTest> #include <QtTest/QTest>
#define KEEPASSX_QTEST_CORE_MAIN(TestObject) \ #define KEEPASSX_QTEST_CORE_MAIN(TestObject) \
int main(int argc, char *argv[]) \ int main(int argc, char* argv[]) \
{ \ { \
QCoreApplication app(argc, argv); \ QCoreApplication app(argc, argv); \
TestObject tc; \ TestObject tc; \