mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 08:32:07 +08:00
Fixed crash in Fl_Preferences if 2nd or 3rd argument in the 'path' constructor were NULL
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -69,9 +69,11 @@ method.
|
||||
|
||||
</ul>
|
||||
|
||||
<H4><a name="Fl_Preferences.Fl_Preferences">Fl_Preferences(enum Root root,
|
||||
const char *vendor, const char *application)<BR>
|
||||
Fl_Preferences(Fl_Preferences &p, const char *groupname)</a></H4>
|
||||
<H4><a name="Fl_Preferences.Fl_Preferences">
|
||||
Fl_Preferences(enum Root root, const char *vendor, const char *application)<BR>
|
||||
Fl_Preferences(const char *path, const char *vendor, const char *application)<BR>
|
||||
Fl_Preferences(Fl_Preferences &p, const char *groupname)<BR>
|
||||
</a></H4>
|
||||
|
||||
<P>The constructor creates a group that manages name/value pairs and
|
||||
child groups. Groups are ready for reading and writing at any time.
|
||||
@@ -89,9 +91,15 @@ name of your application. Both <tt>vendor</tt> and
|
||||
<tt>application</tt> must be valid relative UNIX pathnames and
|
||||
may contain '/'s to create deeper file structures.
|
||||
|
||||
<P>The <tt>groupname</tt> argument identifies a group of
|
||||
entries. It can contain '/'s to get quick access to individual
|
||||
elements inside the hierarchy.
|
||||
<P>The second format is used to create a preferences file at an
|
||||
arbitrary position in the file system. The file name is generated
|
||||
as <tt><i>path</i>/<i>application</i>.prefs</tt>. If <i>application</i>
|
||||
is 0, <i>path</i> must contain the full file name.
|
||||
|
||||
<P>The third format generates a new group of preference entries
|
||||
inside the group or file <i>p</i>. The <tt>groupname</tt> argument
|
||||
identifies a group of entries. It can contain '/'s to get quick
|
||||
access to individual elements inside the hierarchy.
|
||||
|
||||
<H4><a name="Fl_Preferences.~Fl_Preferences">~Fl_Preferences()</a></H4>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user