Commit 99abce09 authored by Jan Möbius's avatar Jan Möbius

Get rid of cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13238 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 92ab4fb4
......@@ -197,8 +197,6 @@ void LoadWidget::loadFile(){
//get selection
QStringList files = selectedFiles();
bool success = false;
//get all extensions
QStringList ext;
......@@ -264,7 +262,6 @@ void LoadWidget::loadFile(){
if ( pluginForExtension_.find( fi.suffix() ) != pluginForExtension_.end() ){
emit load(filename, pluginForExtension_[ fi.suffix() ]);
success = true;
}
}
}
......@@ -505,7 +502,7 @@ bool LoadWidget::validFilename() {
void LoadWidget::accept() {
if( !loadMode_ | validFilename() ) {
if( (!loadMode_) || validFilename() ) {
if ( loadMode_ )
loadFile();
......
......@@ -93,7 +93,5 @@ class LoadWidget : public QFileDialog
std::map< QString, int > pluginForExtension_;
bool step_;
};
......@@ -258,7 +258,6 @@ void OptionsWidget::initKeyTree(){
//get the default settings
QString description;
bool multiUse;
bool slot;
int defKey;
Qt::KeyboardModifiers defModi;
......@@ -266,7 +265,6 @@ void OptionsWidget::initKeyTree(){
description = coreKeys_[bindingID].description;
multiUse = coreKeys_[bindingID].multiUse;
slot = coreKeys_[bindingID].slot;
defKey = coreKeys_[bindingID].key;
defModi = coreKeys_[bindingID].modifiers;
......@@ -274,7 +272,6 @@ void OptionsWidget::initKeyTree(){
description = plugins_[i].keys[bindingID].description;
multiUse = plugins_[i].keys[bindingID].multiUse;
slot = plugins_[i].keys[bindingID].slot;
defKey = plugins_[i].keys[bindingID].key;
defModi = plugins_[i].keys[bindingID].modifiers;
}
......@@ -319,4 +316,4 @@ void OptionsWidget::initKeyTree(){
keyTree->setColumnHidden(5, true);
keyTree->setColumnHidden(6, true);
keyTree->setColumnHidden(7, true);
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment