use string functions to clear and check if empty
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8143 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 98ed072e69fc7f92af5fcfe6e3e169754b7c2150 Former-commit-id: 8aac7891213e47820f3454f06b0156ce673dda5d
This commit is contained in:
parent
00b628dc4e
commit
ded2472a9b
3 changed files with 6 additions and 6 deletions
|
@ -412,7 +412,7 @@ osg::ref_ptr<osg::Node> SDCar::loadCar(tCarElt *Car, bool tracktype, bool subcat
|
|||
}
|
||||
|
||||
this->DRMSelector2->addChild(pWing1_branch.get());
|
||||
strPath ="";
|
||||
strPath.clear();
|
||||
}
|
||||
|
||||
this->DRMSelector2->setSingleChildOn(0);
|
||||
|
@ -581,7 +581,7 @@ osg::ref_ptr<osg::Node> SDCar::loadCar(tCarElt *Car, bool tracktype, bool subcat
|
|||
|
||||
this->DRMSelectMask[i-1] = 1 << selIndex;
|
||||
GfLogDebug(" # DRMSelectMask = %i - nDRM = %i\n", DRMSelectMask[i-1], nDRM);
|
||||
driver_path ="";
|
||||
driver_path.clear();
|
||||
|
||||
selIndex++;
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ osg::ref_ptr<osg::MatrixTransform> SDWheels::initWheel(int wheelIndex, const cha
|
|||
GfLogInfo("Car Texture = %s\n", bSkinName.c_str());
|
||||
|
||||
if (!exist)
|
||||
bSkinName="";
|
||||
bSkinName.clear();
|
||||
else
|
||||
{
|
||||
snprintf(buf, MaxPathSize, "wheel3d-%s", car->_skinName);
|
||||
|
|
|
@ -232,7 +232,7 @@ public:
|
|||
// Use a shared modulate TexEnv
|
||||
mModulateTexEnv = modulateTexEnv;
|
||||
|
||||
if (name1!="")
|
||||
if (!name1.empty())
|
||||
{
|
||||
std::string absFileName1 = osgDB::findDataFile(name1, options);
|
||||
i = TextureData::mTextureImageMap.find(absFileName1);
|
||||
|
@ -271,7 +271,7 @@ public:
|
|||
mTexture2DClamp1->setImage(mImage1.get());
|
||||
}
|
||||
|
||||
if (name2!="")
|
||||
if (!name2.empty())
|
||||
{
|
||||
std::string absFileName2 = osgDB::findDataFile(name2, options);
|
||||
i = TextureData::mTextureImageMap.find(absFileName2);
|
||||
|
@ -310,7 +310,7 @@ public:
|
|||
mTexture2DClamp2->setImage(mImage2.get());
|
||||
}
|
||||
|
||||
if (name3!="")
|
||||
if (!name3.empty())
|
||||
{
|
||||
std::string absFileName3 = osgDB::findDataFile(name3, options);
|
||||
i = TextureData::mTextureImageMap.find(absFileName3);
|
||||
|
|
Loading…
Reference in a new issue