imgtools/romtools/readimage/src/rofs_image_reader.cpp
changeset 6 787612182dd0
parent 2 39c28ec933dd
--- a/imgtools/romtools/readimage/src/rofs_image_reader.cpp	Wed May 12 09:52:26 2010 +0100
+++ b/imgtools/romtools/readimage/src/rofs_image_reader.cpp	Thu May 13 08:38:18 2010 +0100
@@ -290,7 +290,7 @@
 
 			*out << "********************************************************************" << endl;
 			iPath.assign((char*)aNode->iName);	
-			GetCompleteNodePath(aNode,iPath,const_cast<char *>("/"));
+			GetCompleteNodePath(aNode,iPath,"/");
 			*out << "File........................" << iPath.c_str() << endl;
 			if( aNode->iEntry->iExecutable )
 			{
@@ -417,7 +417,7 @@
 	{
 		// get the complete path 
 		path.assign( (char*)aNode->iName );
-		GetCompleteNodePath( aNode, path, const_cast<char *>("\\\\") );
+		GetCompleteNodePath( aNode, path,"\\\\");
 
 	}
 	else
@@ -463,7 +463,7 @@
 @param aAppStr	- string to append.
 @return - returns full path of the given file.
 */
-void RofsImageReader::GetCompleteNodePath(TRomNode* aNode,string& aName,char* aAppStr)
+void RofsImageReader::GetCompleteNodePath(TRomNode* aNode,string& aName, char const* aAppStr)
 {
 	// check if the entry has a parent.
 	TRomNode* NodeParent = aNode->GetParent();
@@ -497,7 +497,7 @@
 	{
 		// get the complete path 
 		path.assign( (char*)aNode->iName );
-		GetCompleteNodePath( aNode, path, const_cast<char *>("\\") );
+		GetCompleteNodePath( aNode, path,"\\");
 	}
 	else
 	{
@@ -550,7 +550,7 @@
 				{
 					// get the complete path 
 					fileName.assign( (char*)currNode->iName );
-					GetCompleteNodePath( currNode, fileName, (char*)DIR_SEPARATOR );
+					GetCompleteNodePath( currNode, fileName,DIR_SEPARATOR );
 				}
 			}
 			else