]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/resources.cpp
Rework exceptions and use maputils
[libs/gltk.git] / source / resources.cpp
index 825fc2517875771874c564989ea9da04c27e144f..869885fecd97e77ae3719399c8fd53d6690baef7 100644 (file)
@@ -1,11 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include <msp/core/except.h>
 #include <msp/fs/utils.h>
 #include "resources.h"
 
@@ -49,7 +41,7 @@ void Resources::set_path(const FS::Path &p)
 const GL::Font &Resources::get_default_font() const
 {
        if(!default_font)
-               throw InvalidState("No default font");
+               throw logic_error("!default_font");
 
        return *default_font;
 }