From 9efdcfd7d8d84129b316fddebf607326ba7bca9f Mon Sep 17 00:00:00 2001 From: David Robillard <d@drobilla.net> Date: Fri, 11 Oct 2024 18:41:58 -0400 Subject: Simplify missing UI file exception --- src/UIFile.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/UIFile.hpp') 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); } }; -- cgit v1.2.1