diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Resource.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Resource.cc b/src/Resource.cc index c53e301..8bd4e26 100644 --- a/src/Resource.cc +++ b/src/Resource.cc | |||
@@ -19,6 +19,8 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Resource.cc,v 1.2 2002/02/04 06:47:34 fluxgen Exp $ | ||
23 | |||
22 | #include "Resource.hh" | 24 | #include "Resource.hh" |
23 | #include "XrmDatabaseHelper.hh" | 25 | #include "XrmDatabaseHelper.hh" |
24 | 26 | ||
@@ -55,7 +57,7 @@ bool ResourceManager::load(const char *filename) { | |||
55 | Resource_base *resource = *i; | 57 | Resource_base *resource = *i; |
56 | if (XrmGetResource(*database, resource->getName().c_str(), | 58 | if (XrmGetResource(*database, resource->getName().c_str(), |
57 | resource->getAltName().c_str(), &value_type, &value)) | 59 | resource->getAltName().c_str(), &value_type, &value)) |
58 | resource->setFromString(value.addr); | 60 | resource->setFromString(value.addr); |
59 | else { | 61 | else { |
60 | cerr<<"Faild to read: "<<resource->getName()<<endl; | 62 | cerr<<"Faild to read: "<<resource->getName()<<endl; |
61 | cerr<<"Setting default value"<<endl; | 63 | cerr<<"Setting default value"<<endl; |