diff -r 301c3edbdaa1 -r 787612182dd0 imgtools/imglib/filesystem/source/fat16filesystem.cpp --- a/imgtools/imglib/filesystem/source/fat16filesystem.cpp Wed May 12 09:52:26 2010 +0100 +++ b/imgtools/imglib/filesystem/source/fat16filesystem.cpp Thu May 13 08:38:18 2010 +0100 @@ -133,7 +133,7 @@ ComputeClusterSizeInBytes(); ComputeRootDirSectors(); ComputeBytesPerSector(); - MessageHandler::ReportMessage (INFORMATION,BOOTSECTORCREATEMSG, const_cast("FAT16")); + MessageHandler::ReportMessage (INFORMATION,BOOTSECTORCREATEMSG,"FAT16"); } /** @@ -145,7 +145,7 @@ */ void CFat16FileSystem::WriteBootSector(ofstream& aOutPutStream) { - MessageHandler::ReportMessage (INFORMATION,BOOTSECTORWRITEMSG,const_cast("FAT16")); + MessageHandler::ReportMessage (INFORMATION,BOOTSECTORWRITEMSG,"FAT16"); aOutPutStream.write(reinterpret_cast(&iData[0]),iFAT16BootSector.BytesPerSector()); aOutPutStream.flush(); } @@ -196,7 +196,7 @@ aFatString.append((totalFatEntries - clusterCounter)*2, 0); } - MessageHandler::ReportMessage (INFORMATION,FATTABLEWRITEMSG,const_cast("FAT16")); + MessageHandler::ReportMessage (INFORMATION,FATTABLEWRITEMSG,"FAT16"); // Write FAT table multiple times depending upon the No of FATS set. unsigned int noOfFats = iFAT16BootSector.NumberOfFats(); @@ -258,15 +258,11 @@ iTotalClusters = iTotalDataSectors / iFAT16BootSector.SectorsPerCluster(); if(iTotalClusters < KMinimumFat16Clusters) { - throw ErrorHandler(BOOTSECTORERROR, - const_cast("Low Partition Size"), - const_cast(__FILE__),__LINE__); + throw ErrorHandler(BOOTSECTORERROR,"Low Partition Size",__FILE__,__LINE__); } if(iTotalClusters > KMaximumFat16Clusters) { - throw ErrorHandler(BOOTSECTORERROR, - const_cast("High Partition Size"), - const_cast(__FILE__),__LINE__); + throw ErrorHandler(BOOTSECTORERROR,"High Partition Size",__FILE__,__LINE__); } } @@ -317,6 +313,6 @@ catch(...) { delete dirRegionPtr; - throw ErrorHandler(UNKNOWNERROR, const_cast(__FILE__), __LINE__); + throw ErrorHandler(UNKNOWNERROR,__FILE__,__LINE__); } }