mirror of https://github.com/fltk/fltk
Fixed previous commit
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
ae9b3365aa
commit
2164880821
|
@ -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();
|
||||
|
|
|
@ -161,8 +161,8 @@ const char *Fl_Preferences::newUUID()
|
|||
*/
|
||||
Fl_Preferences::Fl_Preferences( Root root, const char *vendor, const char *application )
|
||||
{
|
||||
rootNode = new RootNode( this, root, vendor, application );
|
||||
node = new Node( "." );
|
||||
rootNode = new RootNode( this, root, vendor, application );
|
||||
node->setRoot(rootNode);
|
||||
}
|
||||
|
||||
|
@ -181,8 +181,8 @@ Fl_Preferences::Fl_Preferences( Root root, const char *vendor, const char *appli
|
|||
*/
|
||||
Fl_Preferences::Fl_Preferences( const char *path, const char *vendor, const char *application )
|
||||
{
|
||||
rootNode = new RootNode( this, path, vendor, application );
|
||||
node = new Node( "." );
|
||||
rootNode = new RootNode( this, path, vendor, application );
|
||||
node->setRoot(rootNode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue