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

@@ -330,12 +330,10 @@ void SearchEngine::Prepare()
{
for (size_t i = 0; i < w->Size(); ++i)
{
try
{
delete (*w)[i].first;
delete (*w)[i].second;
}
catch (List::InvalidItem) { }
if (i == 10 || i == 14 || i == ResetButton+1 || i == ResetButton+3) // separators
continue;
delete (*w)[i].first;
delete (*w)[i].second;
}
w->SetTitle("");
@@ -347,11 +345,9 @@ void SearchEngine::Prepare()
for (size_t i = 0; i < 17; ++i)
{
try
{
w->at(i).first = new Buffer();
}
catch (List::InvalidItem) { }
if (i == 10 || i == 14) // separators
continue;
(*w)[i].first = new Buffer();
}
*w->at(0).first << fmtBold << "Any: " << fmtBoldEnd << ' ';