Compile
This commit is contained in:
parent
dab5434edb
commit
790848b822
1 changed files with 10 additions and 8 deletions
|
@ -289,14 +289,16 @@ int PropertyList::nodeNameCompare(const void *ppNode1, const void *ppNode2)
|
|||
|
||||
|
||||
void PropertyList::setValue(const char *s)
|
||||
try {
|
||||
SGPropertyNode *p = fgGetNode(s, false);
|
||||
if (p)
|
||||
setCurrent(p);
|
||||
else
|
||||
throw stdString("node doesn't exist");
|
||||
} catch (const stdString& m) {
|
||||
SG_LOG(SG_GENERAL, SG_DEBUG, "property-list node `" << s << "': " << m);
|
||||
{
|
||||
try {
|
||||
SGPropertyNode *p = fgGetNode(s, false);
|
||||
if (p)
|
||||
setCurrent(p);
|
||||
else
|
||||
throw stdString("node doesn't exist");
|
||||
} catch (const stdString& m) {
|
||||
SG_LOG(SG_GENERAL, SG_DEBUG, "property-list node `" << s << "': " << m);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue