From 0abd2665f5d4773c5e65e2dedbb1c8bbe35d4379 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sun, 5 Dec 2010 00:38:16 +0000 Subject: Reformatting for CMP: Indent fixes, bracing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7949 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Preferences.H | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) (limited to 'FL/Fl_Preferences.H') diff --git a/FL/Fl_Preferences.H b/FL/Fl_Preferences.H index db7b0cd59..c38cb0fd6 100644 --- a/FL/Fl_Preferences.H +++ b/FL/Fl_Preferences.H @@ -32,8 +32,7 @@ # define Fl_Preferences_H # include -# include "Fl_Export.H" - +# include "Fl_Export.H" /** \brief Fl_Preferences provides methods to store user @@ -67,11 +66,9 @@ current chracter set or code page which renders them incompatible for text entries using international characters. */ -class FL_EXPORT Fl_Preferences -{ - -public: +class FL_EXPORT Fl_Preferences { +public: /** Define the scope of the preferences. */ @@ -171,8 +168,7 @@ public: char *data_; - public: - + public: Name( unsigned int n ); Name( const char *format, ... ); @@ -185,13 +181,11 @@ public: }; /** \internal An entry associates a preference name to its corresponding value */ - struct Entry - { + struct Entry { char *name, *value; }; -private: - +private: Fl_Preferences() : node(0), rootNode(0) { } Fl_Preferences &operator=(const Fl_Preferences&); @@ -201,12 +195,12 @@ private: class RootNode; - class FL_EXPORT Node // a node contains a list to all its entries - { // and all means to manage the tree structure + class FL_EXPORT Node { // a node contains a list to all its entries + // and all means to manage the tree structure Node *child_, *next_; - union { // these two are mutually exclusive - Node *parent_; // top_ bit clear - RootNode *root_; // top_ bit set + union { // these two are mutually exclusive + Node *parent_; // top_ bit clear + RootNode *root_; // top_ bit set }; char *path_; Entry *entry_; @@ -255,8 +249,7 @@ private: }; friend class Node; - class FL_EXPORT RootNode // the root node manages file paths and basic reading and writing - { + class FL_EXPORT RootNode { // the root node manages file paths and basic reading and writing Fl_Preferences *prefs_; char *filename_; char *vendor_, *application_; @@ -272,12 +265,10 @@ private: friend class RootNode; protected: - Node *node; RootNode *rootNode; }; - #endif // !Fl_Preferences_H // -- cgit v1.2.3