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

fix control may reach end of non void function

parent 3bf8afe5
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ TabType OutputDialog::getCurrentTabType() const { ...@@ -110,7 +110,7 @@ TabType OutputDialog::getCurrentTabType() const {
return TabType::Image; return TabType::Image;
} }
   
throw std::logic_error ( "Invalid tab type" ); throw std::logic_error ( "Invalid tab type." );
} }
   
std::pair<QString, QString> OutputDialog::getCurrentTabFileFilter() const { std::pair<QString, QString> OutputDialog::getCurrentTabFileFilter() const {
......
...@@ -9,7 +9,8 @@ QString selectFormat(GraphvizIntegrator::PictureFormat format) { ...@@ -9,7 +9,8 @@ QString selectFormat(GraphvizIntegrator::PictureFormat format) {
case GraphvizIntegrator::PictureFormat::SVG: case GraphvizIntegrator::PictureFormat::SVG:
return "svg"; return "svg";
} }
Q_ASSERT(false);
throw std::logic_error ( "Invalid picture format." );
} }
   
namespace GraphvizIntegrator { namespace GraphvizIntegrator {
...@@ -56,4 +57,4 @@ namespace GraphvizIntegrator { ...@@ -56,4 +57,4 @@ namespace GraphvizIntegrator {
return PNG; return PNG;
throw std::runtime_error { "Failed to determine output format from filename." }; throw std::runtime_error { "Failed to determine output format from filename." };
} }
} }
\ No newline at end of file
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