Skip to content
Snippets Groups Projects
Commit 76a829db authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix control may reach end of non void function

parent 7b8029bd
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ TabType OutputDialog::getCurrentTabType() const { ...@@ -105,7 +105,7 @@ TabType OutputDialog::getCurrentTabType() const {
return TabType::Image; return TabType::Image;
} }
   
Q_ASSERT(false); throw std::logic_error ( "Invalid tab type" );
} }
   
std::pair<QString, QString> OutputDialog::getCurrentTabFileFilter() const { std::pair<QString, QString> OutputDialog::getCurrentTabFileFilter() const {
...@@ -115,5 +115,5 @@ std::pair<QString, QString> OutputDialog::getCurrentTabFileFilter() const { ...@@ -115,5 +115,5 @@ std::pair<QString, QString> OutputDialog::getCurrentTabFileFilter() const {
case TabType::DOT: return { "DOT files (*.dot)", ".dot" }; case TabType::DOT: return { "DOT files (*.dot)", ".dot" };
case TabType::Image: return { "PNG files (*.png)", ".png" }; case TabType::Image: return { "PNG files (*.png)", ".png" };
} }
Q_ASSERT(false); throw std::logic_error ( "Invalid tab type" );
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment