summaryrefslogtreecommitdiffstats
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-10-28 18:31:34 +0100
committerGravatar Jonathan Beck2009-10-28 18:31:34 +0100
commit6710f4bfb980dd0fe6e75e4d6cba75532cde30e8 (patch)
tree6429eb306d3d464ebbcc0de558559b636d8058c2 /src/Utils.cpp
parentfed2573566c2da1c5489260069a99ae9d2abf255 (diff)
downloadlibplist-6710f4bfb980dd0fe6e75e4d6cba75532cde30e8.tar.gz
libplist-6710f4bfb980dd0fe6e75e4d6cba75532cde30e8.tar.bz2
Format sources to ANSI style using AStyle (astyle --style=ansi).
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp
index df003e7..cb6da5e 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -7,15 +7,15 @@
7 * modify it under the terms of the GNU Lesser General Public 7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version. 9 * version 2.1 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details. 14 * Lesser General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Lesser General Public 16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software 17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 20
21#include <stdlib.h> 21#include <stdlib.h>
@@ -38,36 +38,36 @@ Node* Utils::FromPlist(plist_t node, Node* parent)
38 if (node) 38 if (node)
39 { 39 {
40 plist_type type = plist_get_node_type(node); 40 plist_type type = plist_get_node_type(node);
41 switch(type) 41 switch (type)
42 { 42 {
43 case PLIST_DICT: 43 case PLIST_DICT:
44 ret = new Dictionary(node, parent); 44 ret = new Dictionary(node, parent);
45 break; 45 break;
46 case PLIST_ARRAY: 46 case PLIST_ARRAY:
47 ret = new Array(node, parent); 47 ret = new Array(node, parent);
48 break; 48 break;
49 case PLIST_BOOLEAN: 49 case PLIST_BOOLEAN:
50 ret = new Boolean(node, parent); 50 ret = new Boolean(node, parent);
51 break; 51 break;
52 case PLIST_UINT: 52 case PLIST_UINT:
53 ret = new Integer(node, parent); 53 ret = new Integer(node, parent);
54 break; 54 break;
55 case PLIST_REAL: 55 case PLIST_REAL:
56 ret = new Real(node, parent); 56 ret = new Real(node, parent);
57 break; 57 break;
58 case PLIST_STRING: 58 case PLIST_STRING:
59 ret = new String(node, parent); 59 ret = new String(node, parent);
60 break; 60 break;
61 case PLIST_DATE: 61 case PLIST_DATE:
62 ret = new Date(node, parent); 62 ret = new Date(node, parent);
63 break; 63 break;
64 case PLIST_DATA: 64 case PLIST_DATA:
65 ret = new Data(node, parent); 65 ret = new Data(node, parent);
66 break; 66 break;
67 default: 67 default:
68 plist_free(node); 68 plist_free(node);
69 break; 69 break;
70 } 70 }
71 } 71 }
72 return ret; 72 return ret;
73} 73}