make ncmpcpp compile with -fno-exceptions

This commit is contained in:
Andrzej Rybczak
2009-09-21 06:01:21 +02:00
parent 14a774b8a3
commit 70910b77ed
12 changed files with 135 additions and 70 deletions

View File

@@ -29,6 +29,7 @@
#include "charset.h"
#include "conv.h"
#include "error.h"
#include "song.h"
MPD::Song::Song(mpd_Song *s, bool copy_ptr) : itsSong(s ? s : mpd_newSong()),
@@ -478,7 +479,7 @@ void MPD::Song::ValidateFormat(const std::string &type, const std::string &s)
--braces;
}
if (braces)
throw std::runtime_error(type + ": number of opening and closing braces does not equal!");
FatalError(type + ": number of opening and closing braces does not equal!");
}
void MPD::Song::SetHashAndSlash()