diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2009-12-28 23:10:11 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2009-12-28 23:10:11 +0000 |
| commit | 2164880821959e68fbf55061eba274ca176e9b69 (patch) | |
| tree | e68a9a01370d62c62d74240e57c72d581b9ed49a /FL | |
| parent | ae9b3365aa310d90d769576967263bf66bf41b19 (diff) | |
Fixed previous commit
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Preferences.H | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FL/Fl_Preferences.H b/FL/Fl_Preferences.H index e734d7d23..b5dffe14c 100644 --- a/FL/Fl_Preferences.H +++ b/FL/Fl_Preferences.H @@ -100,7 +100,9 @@ public: Fl_Preferences( ID id ); ~Fl_Preferences(); - ID id(); + /** Return an ID that can later be reused to open more references to this dataset. + */ + ID id() { return (ID)node; } /** Return the name of this entry. */ @@ -212,7 +214,7 @@ private: Node *search( const char *path, int offset=0 ); Node *addChild( const char *path ); void setParent( Node *parent ); - Node *parent() { return top_?parent_:0L; } + Node *parent() { return top_?0L:parent_; } void setRoot(RootNode *r) { root_ = r; top_ = 1; } RootNode *findRoot(); char remove(); |
