Changeset 1191:bd35331c0e20
- Timestamp:
- 03/23/09 10:33:00 (3 years ago)
- Branch:
- default
- Files:
-
- 12 edited
-
trunk/src/cgiFastRequest.inline (modified) (1 diff)
-
trunk/src/dataBaseMysql.cc (modified) (1 diff)
-
trunk/src/dataBasePostgresql.cc (modified) (2 diffs)
-
trunk/src/dataBaseSqlite.cc (modified) (3 diffs)
-
trunk/src/dataFormatXmlProcessor.cc (modified) (13 diffs)
-
trunk/src/graphicsImage.cc (modified) (1 diff)
-
trunk/src/graphicsImage.inline (modified) (1 diff)
-
trunk/src/ioNetworkSslExchange.cc (modified) (2 diffs)
-
trunk/src/ioNetworkSslServer.cc (modified) (1 diff)
-
trunk/src/ioSsl.inline (modified) (2 diffs)
-
trunk/tests/dataformatxml_test/test.cc (modified) (1 diff)
-
utils/shift_inline_comments.sh (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cgiFastRequest.inline
r1189 r1191 45 45 struct __request 46 46 { 47 /** 48 * constructor 49 */ 50 __request() : request(NULL) 51 { 52 } 53 47 54 FCGX_Request *request; ///< fast-CGI request handler 48 55 }; -
trunk/src/dataBaseMysql.cc
r1189 r1191 49 49 struct __mysql 50 50 { 51 /** 52 * constructor 53 */ 54 __mysql() : handle(NULL), 55 result(NULL) 56 { 57 } 58 51 59 MYSQL *handle; ///< DB handle 52 60 MYSQL_RES *result; ///< handle to result -
trunk/src/dataBasePostgresql.cc
r1189 r1191 52 52 struct __postgresql 53 53 { 54 /** 55 * constructor 56 */ 57 __postgresql() : handle(NULL), 58 result(NULL) 59 { 60 } 61 54 62 PGconn *handle; ///< DB handle 55 63 PGresult *result; ///< handlde to result … … 111 119 handle(new __postgresql) 112 120 { 113 handle->handle = NULL;114 115 121 #ifndef DATABASE_WO_XEXEC 116 122 collectedData.setExecObject(XEXEC_OBJECT_DATABASEPOSTGRESQL); -
trunk/src/dataBaseSqlite.cc
r1189 r1191 50 50 struct __sqlite 51 51 { 52 /** 53 * constructor 54 */ 55 __sqlite() : handle(NULL), 56 result(NULL) 57 { 58 } 59 52 60 sqlite3 *handle; ///< DB handle 53 61 sqlite3_stmt *result; ///< handlde to result … … 62 70 handle(new __sqlite) 63 71 { 64 handle->handle = NULL;65 66 72 #ifndef DATABASE_WO_XEXEC 67 73 collectedData.setExecObject(XEXEC_OBJECT_DATABASESQLITE); … … 74 80 handle(new __sqlite) 75 81 { 76 handle->handle = NULL;77 78 82 #ifndef DATABASE_WO_XEXEC 79 83 collectedData.setExecObject(XEXEC_OBJECT_DATABASESQLITE); -
trunk/src/dataFormatXmlProcessor.cc
r1189 r1191 57 57 * constructor 58 58 */ 59 __node() 59 __node() : node(NULL) 60 60 { 61 61 } … … 63 63 /** 64 64 * constructor 65 * @param node defines node handle to assign 65 66 */ 66 67 __node(xmlNodePtr node) : node(node) … … 77 78 struct __doc 78 79 { 79 xmlDocPtr document; ///< represents internal libxml2 document data 80 /** 81 * constructor 82 */ 83 __doc() : doc(NULL) 84 { 85 } 86 87 xmlDocPtr doc; ///< represents internal libxml2 document data 80 88 }; 81 89 }; … … 174 182 { 175 183 #ifdef LIBXML2_EXT 176 xmlFreeDoc(document->doc ument);184 xmlFreeDoc(document->doc); 177 185 xmlCleanupParser(); 178 186 … … 209 217 { 210 218 #ifdef LIBXML2_EXT 211 xmlFreeDoc(document->doc ument);212 213 document->doc ument= xmlParseFile(file.c_str());214 if (document->doc ument== NULL)219 xmlFreeDoc(document->doc); 220 221 document->doc = xmlParseFile(file.c_str()); 222 if (document->doc == NULL) 215 223 { 216 224 xmlErrorPtr error = xmlGetLastError(); … … 237 245 { 238 246 #ifdef LIBXML2_EXT 239 xmlFreeDoc(document->doc ument);240 241 document->doc ument= xmlParseMemory(buffer.c_str(), buffer.size());242 if (document->doc ument== NULL)247 xmlFreeDoc(document->doc); 248 249 document->doc = xmlParseMemory(buffer.c_str(), buffer.size()); 250 if (document->doc == NULL) 243 251 { 244 252 xmlErrorPtr error = xmlGetLastError(); … … 264 272 { 265 273 #ifdef LIBXML2_EXT 266 __node xnode = xmlDocGetRootElement(document->doc ument);274 __node xnode = xmlDocGetRootElement(document->doc); 267 275 if (xnode.node == NULL) 268 276 { … … 586 594 } 587 595 588 unsigned char *xChar = xmlNodeListGetString(document->doc ument, xnode.node->children, 1);596 unsigned char *xChar = xmlNodeListGetString(document->doc, xnode.node->children, 1); 589 597 if (xChar != NULL) 590 598 { … … 734 742 { 735 743 #ifdef LIBXML2_EXT 736 xmlFreeDoc(document->doc ument);737 738 document->doc ument= xmlParseFile(file.c_str());739 if (document->doc ument== NULL)744 xmlFreeDoc(document->doc); 745 746 document->doc = xmlParseFile(file.c_str()); 747 if (document->doc == NULL) 740 748 { 741 749 xmlErrorPtr error = xmlGetLastError(); … … 751 759 } 752 760 753 xmlNodePtr xnode = xmlDocGetRootElement(document->doc ument);761 xmlNodePtr xnode = xmlDocGetRootElement(document->doc); 754 762 if (xnode == NULL) 755 763 { … … 778 786 { 779 787 #ifdef LIBXML2_EXT 780 xmlFreeDoc(document->doc ument);781 782 document->doc ument= xmlParseMemory(buffer.c_str(), buffer.size());783 if (document->doc ument== NULL)788 xmlFreeDoc(document->doc); 789 790 document->doc = xmlParseMemory(buffer.c_str(), buffer.size()); 791 if (document->doc == NULL) 784 792 { 785 793 xmlErrorPtr error = xmlGetLastError(); … … 795 803 } 796 804 797 xmlNodePtr xnode = xmlDocGetRootElement(document->doc ument);805 xmlNodePtr xnode = xmlDocGetRootElement(document->doc); 798 806 if (xnode == NULL) 799 807 { … … 890 898 { 891 899 #ifdef LIBXML2_EXT 892 xmlFreeDoc(document->doc ument);893 document->doc ument= NULL;900 xmlFreeDoc(document->doc); 901 document->doc = NULL; 894 902 #endif 895 903 } -
trunk/src/graphicsImage.cc
r1189 r1191 242 242 #endif 243 243 { 244 collectedData.handle->im = NULL;245 246 244 #ifndef IMAGEMAGICK_PRE_63 247 245 collectedData.handle->imInfo = AcquireImageInfo(); -
trunk/src/graphicsImage.inline
r1189 r1191 47 47 struct __image 48 48 { 49 /** 50 * contructor 51 */ 52 __image() : im(NULL), 53 imInfo(NULL) 54 { 55 } 56 49 57 ImageInfo *imInfo; ///< image info handler 50 58 Image *im; ///< image handler -
trunk/src/ioNetworkSslExchange.cc
r1189 r1191 51 51 handle(new io::ssl::__sslConnection) 52 52 { 53 handle->handle = NULL;54 53 } 55 54 … … 94 93 collectedData.setExecObject(XEXEC_OBJECT_IONETWORKSSLEXCHANGE); 95 94 #endif 96 97 handle->handle = NULL;98 95 } 99 96 -
trunk/src/ioNetworkSslServer.cc
r1185 r1191 67 67 collectedData.setExecObject(XEXEC_OBJECT_IONETWORKSSLSERVER); 68 68 #endif 69 70 ctx->ctx = NULL;71 69 } 72 70 -
trunk/src/ioSsl.inline
r1189 r1191 45 45 struct __sslConnection 46 46 { 47 /** 48 * constructor 49 */ 50 __sslConnection() : handle(NULL) 51 { 52 } 53 47 54 SSL *handle; ///< SSL connection handle 48 55 }; … … 54 61 struct __sslContext 55 62 { 63 /** 64 * constructor 65 */ 66 __sslContext() : ctx(NULL) 67 { 68 } 69 56 70 SSL_CTX *ctx; ///< SSL context 57 71 }; -
trunk/tests/dataformatxml_test/test.cc
r1034 r1191 7 7 #include <libdodo/exceptionBasic.h> 8 8 #include <libdodo/dataFormatXmlProcessor.h> 9 #include <libdodo/dataFormatXmlNode.h> 9 10 #include <libdodo/toolsMisc.h> 10 11 -
utils/shift_inline_comments.sh
- Property exe set to *
Note: See TracChangeset
for help on using the changeset viewer.
