From c8a3f4ae89bc415bfbd877b3f4c3605ac3cf4010 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 4 Oct 2007 20:24:51 +0000 Subject: [PATCH] Rename error.h to except.h Get rid of the largely unused IO::Exception --- source/buffered.cpp | 2 +- source/{error.h => except.h} | 12 +++--------- source/file.cpp | 2 +- source/poll.cpp | 2 +- source/seek.cpp | 2 +- 5 files changed, 7 insertions(+), 13 deletions(-) rename source/{error.h => except.h} (71%) diff --git a/source/buffered.cpp b/source/buffered.cpp index 4cd5cb4..4327413 100644 --- a/source/buffered.cpp +++ b/source/buffered.cpp @@ -5,7 +5,7 @@ Copyright © 2007 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ #include "buffered.h" -#include "error.h" +#include "except.h" using namespace std; diff --git a/source/error.h b/source/except.h similarity index 71% rename from source/error.h rename to source/except.h index 8ebcf38..b277b8d 100644 --- a/source/error.h +++ b/source/except.h @@ -4,20 +4,14 @@ This file is part of libmspio Copyright © 2007 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#ifndef MSP_IO_ERROR_H_ -#define MSP_IO_ERROR_H_ +#ifndef MSP_IO_EXCEPT_H_ +#define MSP_IO_EXCEPT_H_ -#include +#include namespace Msp { namespace IO { -class Exception: public Msp::Exception -{ -public: - Exception(const std::string &w_): Msp::Exception(w_) { } -}; - class FileNotFound: public Exception { public: diff --git a/source/file.cpp b/source/file.cpp index 9b1e433..a22b832 100644 --- a/source/file.cpp +++ b/source/file.cpp @@ -10,7 +10,7 @@ Distributed under the LGPL #include #endif #include -#include "error.h" +#include "except.h" #include "file.h" using namespace std; diff --git a/source/poll.cpp b/source/poll.cpp index f8f6c51..3b349b4 100644 --- a/source/poll.cpp +++ b/source/poll.cpp @@ -7,7 +7,7 @@ Distributed under the LGPL #include #include #include -#include "error.h" +#include "except.h" #include "base.h" #include "poll.h" diff --git a/source/seek.cpp b/source/seek.cpp index f2d381e..88ba033 100644 --- a/source/seek.cpp +++ b/source/seek.cpp @@ -7,7 +7,7 @@ Distributed under the LGPL #ifdef WIN32 #include #endif -#include +#include "except.h" #include "seek.h" namespace Msp { -- 2.43.0