From 5edc5696cafb0d859f3bfba55adfbfa91500b146 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 7 Mar 2010 15:20:50 -0200 Subject: [PATCH] Modified some ase_exception creations using PACKAGE name. --- src/modules/gui.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/modules/gui.h b/src/modules/gui.h index c9cbcb555..9ed5c8100 100644 --- a/src/modules/gui.h +++ b/src/modules/gui.h @@ -37,8 +37,7 @@ class widget_file_not_found : public ase_exception { public: widget_file_not_found(const char* file_name) throw() - : ase_exception(std::string("Cannot load file: ") + file_name - + "\nPlease reinstall " PACKAGE) { } + : ase_exception("Cannot load file: %s\nPlease reinstall %s", file_name, PACKAGE) { } }; /** @@ -48,8 +47,8 @@ class widget_not_found : public ase_exception { public: widget_not_found(const char* widget_name) throw() - : ase_exception("A data file is corrupted.\nPlease reinstall " PACKAGE - "\n\nDetails: Widget not found: " + std::string(widget_name)) { } + : ase_exception("A data file is corrupted.\nPlease reinstall %s\n\n" + "Details: Widget not found: %s", PACKAGE, widget_name) { } }; //////////////////////////////////////////////////////////////////////