Fix: Some compilers do not auto-cast String and Path classes to (char *).

This commit is contained in:
bank 2014-05-01 12:51:08 +04:00
parent e6673eaf30
commit 9f2d44966e
2 changed files with 2 additions and 2 deletions

View file

@ -587,7 +587,7 @@ bool PlayerData::preload(bool server, String &errorStr)
if (!fileRef)
{
errorStr = String::ToString("PlayerData: Mounted image %d loading failed, shape \"%s\" is not found.",i,mShapeFP[i].getPath());
errorStr = String::ToString("PlayerData: Mounted image %d loading failed, shape \"%s\" is not found.",i,mShapeFP[i].getPath().getFullPath().c_str());
return false;
}

View file

@ -444,7 +444,7 @@ const String GFXD3D9ShaderConstBuffer::describeSelf() const
GenericConstBufferLayout::ParamDesc pd;
mVertexConstBufferLayoutF->getDesc(i, pd);
ret += String::ToString(" Constant name: %s", pd.name);
ret += String::ToString(" Constant name: %s", pd.name.c_str());
}
return ret;