diff options
author | David Robillard <d@drobilla.net> | 2024-10-11 18:41:58 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-11 18:42:10 -0400 |
commit | 9efdcfd7d8d84129b316fddebf607326ba7bca9f (patch) | |
tree | 4e7376d344710082121548a13a12d2cd91caee2c | |
parent | a80c17dc0f023dd82cb17c95bf70653a70a858af (diff) | |
download | patchage-9efdcfd7d8d84129b316fddebf607326ba7bca9f.tar.gz patchage-9efdcfd7d8d84129b316fddebf607326ba7bca9f.tar.bz2 patchage-9efdcfd7d8d84129b316fddebf607326ba7bca9f.zip |
Simplify missing UI file exception
-rw-r--r-- | src/UIFile.hpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/UIFile.hpp b/src/UIFile.hpp index d583c6d..1f2c39f 100644 --- a/src/UIFile.hpp +++ b/src/UIFile.hpp @@ -13,9 +13,7 @@ #include <glibmm/refptr.h> #include <gtkmm/builder.h> -#include <fstream> #include <iostream> -#include <sstream> #include <stdexcept> #include <string> @@ -53,9 +51,7 @@ public: return Gtk::Builder::create_from_file(ui_filename); } - std::stringstream ss; - ss << "Unable to find " << ui_filename << "\n"; - throw std::runtime_error(ss.str()); + throw std::runtime_error("Unable to find " + ui_filename); } }; |