diff -r 301c3edbdaa1 -r 787612182dd0 imgtools/imglib/filesystem/source/filesysteminterface.cpp --- a/imgtools/imglib/filesystem/source/filesysteminterface.cpp Wed May 12 09:52:26 2010 +0100 +++ b/imgtools/imglib/filesystem/source/filesysteminterface.cpp Thu May 13 08:38:18 2010 +0100 @@ -62,9 +62,7 @@ iOutputStream.open(aImageFileName,ios::out|ios::binary); if(iOutputStream.fail() == true ) { - throw ErrorHandler(FILEOPENERROR, - const_cast(aImageFileName), - const_cast(__FILE__), __LINE__); + throw ErrorHandler(FILEOPENERROR,aImageFileName,__FILE__,__LINE__); } switch(aFileSystem) {