Fixed gcc warning: mainwindow.cpp: In member function ‘Settings MainWindow::GetCppcheckSettings()’:

mainwindow.cpp:575:24: warning: enumeration value ‘UNSUPPORTED_FORMAT’ not handled in switch [-Wswitch]
                 switch (error.errorcode) {
                        ^
This commit is contained in:
orbitcowboy 2014-09-30 08:07:50 +02:00
parent 3a14441699
commit c3c8132bbd
1 changed files with 3 additions and 0 deletions

View File

@ -593,6 +593,9 @@ Settings MainWindow::GetCppcheckSettings()
case Library::ErrorCode::BAD_ATTRIBUTE_VALUE:
errmsg = tr("Bad attribute value");
break;
case Library::ErrorCode::UNSUPPORTED_FORMAT:
errmsg = tr("Unsupported format");
break;
}
if (!error.reason.empty())
errmsg += " '" + QString::fromStdString(error.reason) + "'";