diff --git a/avdecoder.h b/avdecoder.h index d4e76fe..f022f6a 100644 --- a/avdecoder.h +++ b/avdecoder.h @@ -51,8 +51,7 @@ public: class AvInit { public: - AvInit() - { + AvInit() { av_register_all(); } }; diff --git a/clientmanager.cpp b/clientmanager.cpp index 562417f..881d20e 100644 --- a/clientmanager.cpp +++ b/clientmanager.cpp @@ -52,8 +52,7 @@ void ClientManager::showPinDialog(QString name, int pin) void ClientManager::start() { - if(VitaMTP_Init() < 0) - { + if(VitaMTP_Init() < 0) { emit messageSent(tr("Cannot initialize VitaMTP library")); return; } diff --git a/cmaevent.cpp b/cmaevent.cpp index d93eb97..f08abc7 100644 --- a/cmaevent.cpp +++ b/cmaevent.cpp @@ -613,7 +613,7 @@ void CmaEvent::vitaEventGetSettingInfo(vita_event_t *event, int eventId) settings.setValue("lastOnlineId", settingsinfo->current_account.userName); if(settings.value("lastAccountId").toString() != settingsinfo->current_account.accountId) { - db->setUUID(settingsinfo->current_account.accountId); + db->setUUID(settingsinfo->current_account.accountId); // set the database to be updated ASAP emit refreshDatabase(); } diff --git a/configwidget.h b/configwidget.h index 593972b..b7b90d5 100644 --- a/configwidget.h +++ b/configwidget.h @@ -25,8 +25,7 @@ #include #include -namespace Ui -{ +namespace Ui { class ConfigWidget; } diff --git a/database.cpp b/database.cpp index 93e64d6..2dd141f 100644 --- a/database.cpp +++ b/database.cpp @@ -446,8 +446,7 @@ int Database::filterObjects(int ohfiParent, metadata_t **p_head, int index, int for(map_list::iterator root = object_list.begin(); root != object_list.end(); ++root) { for(root_list::iterator object = (*root).begin(); object != (*root).end(); ++object) { if(acceptFilteredObject(parent, *object, type)) { - if(offset++ >= index) - { + if(offset++ >= index) { tail->next_metadata = &(*object)->metadata; tail = tail->next_metadata; numObjects++; diff --git a/filterlineedit.h b/filterlineedit.h index ff97948..78cb6fe 100644 --- a/filterlineedit.h +++ b/filterlineedit.h @@ -29,7 +29,7 @@ class FilterLineEdit : public QLineEdit public: explicit FilterLineEdit(QWidget *parent = 0); - + protected: void focusInEvent(QFocusEvent *e); void focusOutEvent(QFocusEvent *e); diff --git a/sforeader.cpp b/sforeader.cpp index 76737b3..d3982c7 100644 --- a/sforeader.cpp +++ b/sforeader.cpp @@ -25,7 +25,8 @@ SfoReader::SfoReader() { } -bool SfoReader::load(const QString &path) { +bool SfoReader::load(const QString &path) +{ QFile file(path); if(file.open(QIODevice::ReadOnly)) { data = file.readAll(); @@ -37,7 +38,8 @@ bool SfoReader::load(const QString &path) { return false; } -const char *SfoReader::value(const char *key, const char *defaultValue) { +const char *SfoReader::value(const char *key, const char *defaultValue) +{ const char *base_key = key_offset + header->key_offset; for(uint i = 0; i < header->pair_count; i++) { const char *curr_key = base_key + index[i].key_offset;