type = "rotation";
}
- if (propName != "") {
+ if (!propName.empty()) {
target = fgGetNode(propName.c_str(), true);
}
// Get multibackground if any...
//
string mbgTexture = root->getStringValue("multibackground[0]");
- if (mbgTexture != (string)"") {
+ if (!mbgTexture.empty()) {
panel->setMultiBackground(FGTextureManager::createTexture(mbgTexture.c_str()), 0);
SG_LOG( SG_COCKPIT, SG_INFO, "Set background texture to " << mbgTexture );