avoid copying incomplete type in catch

git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@123 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2006-06-05 22:27:21 +00:00
parent cc1aac2389
commit 1b773c5726
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ int main( int argc, char **argv )
client.sync(SYNC_NONE, true);
}
return 0;
} catch ( std::exception ex ) {
} catch ( const std::exception &ex ) {
LOG.error( ex.what() );
} catch (...) {
LOG.error( "unknown error" );