]> Creatis software - creaImageIO.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Mon, 15 Dec 2008 12:54:44 +0000 (12:54 +0000)
committerguigues <guigues>
Mon, 15 Dec 2008 12:54:44 +0000 (12:54 +0000)
src/CppSQLite3.cpp
src/CppSQLite3.h
src/icons/database.xpm
src/icons/dicomdir.xpm
src/icons/folder.xpm
src/icons/image.xpm
src/icons/patient.xpm
src/icons/root.xpm
src/icons/series.xpm
src/icons/study.xpm

index 5d82661..165f911 100644 (file)
@@ -45,21 +45,37 @@ int sqlite3_decode_binary(const unsigned char *in, unsigned char *out);
 ////////////////////////////////////////////////////////////////////////////////\r
 \r
 CppSQLite3Exception::CppSQLite3Exception(const int nErrCode,\r
-                                                                       char* szErrMess,\r
-                                                                       bool bDeleteMsg/*=true*/) :\r
-                                                                       mnErrCode(nErrCode)\r
-{\r
-       mpszErrMess = sqlite3_mprintf("%s[%d]: %s",\r
-                                                               errorCodeAsString(nErrCode),\r
-                                                               nErrCode,\r
-                                                               szErrMess ? szErrMess : "");\r
-\r
-       if (bDeleteMsg && szErrMess)\r
-       {\r
-               sqlite3_free(szErrMess);\r
-       }\r
+                                        const char* szErrMess,\r
+                                        bool bDeleteMsg/*=true*/) :\r
+  mnErrCode(nErrCode)\r
+{\r
+  mpszErrMess = sqlite3_mprintf("%s[%d]: %s",\r
+                               errorCodeAsString(nErrCode),\r
+                               nErrCode,\r
+                               szErrMess ? szErrMess : "");\r
+  /*\r
+  if (bDeleteMsg && szErrMess)\r
+    {\r
+      sqlite3_free(szErrMess);\r
+    }\r
+  */\r
 }\r
 \r
+CppSQLite3Exception::CppSQLite3Exception(const int nErrCode,\r
+                                        char* szErrMess,\r
+                                        bool bDeleteMsg/*=true*/) :\r
+  mnErrCode(nErrCode)\r
+{\r
+  mpszErrMess = sqlite3_mprintf("%s[%d]: %s",\r
+                               errorCodeAsString(nErrCode),\r
+                               nErrCode,\r
+                               szErrMess ? szErrMess : "");\r
+  \r
+  if (bDeleteMsg && szErrMess)\r
+    {\r
+      sqlite3_free(szErrMess);\r
+    }\r
+}\r
                                                                        \r
 CppSQLite3Exception::CppSQLite3Exception(const CppSQLite3Exception&  e) :\r
                                                                        mnErrCode(e.mnErrCode)\r
@@ -1310,7 +1326,7 @@ sqlite3_stmt* CppSQLite3DB::compile(const char* szSQL)
 ** data in an SQLite database.  The code in this file is not used by any other\r
 ** part of the SQLite library.\r
 **\r
-** $Id: CppSQLite3.cpp,v 1.1 2008/09/26 14:15:48 guigues Exp $\r
+** $Id: CppSQLite3.cpp,v 1.2 2008/12/15 12:54:44 guigues Exp $\r
 */\r
 \r
 /*\r
index 891170b..c45c9cb 100644 (file)
@@ -39,9 +39,12 @@ class CppSQLite3Exception
 public:\r
 \r
     CppSQLite3Exception(const int nErrCode,\r
-                    char* szErrMess,\r
-                    bool bDeleteMsg=true);\r
-\r
+                       char* szErrMess,\r
+                       bool bDeleteMsg=true);\r
+  CppSQLite3Exception(const int nErrCode,\r
+                     const char* szErrMess,\r
+                     bool bDeleteMsg=true);\r
+  \r
     CppSQLite3Exception(const CppSQLite3Exception&  e);\r
 \r
     virtual ~CppSQLite3Exception();\r
index f662084..8dc871e 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * database_xpm[] = {
+static const char * database_xpm[] = {
 "48 48 293 2",
 "      c None",
 ".     c #9E9FA2",
index 5f07183..036df73 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * dicomdir_xpm[] = {
+static const char * dicomdir_xpm[] = {
 "48 48 725 2",
 "      c None",
 ".     c #B48400",
index f3d5c4e..c126c5d 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * folder_xpm[] = {
+static const char * folder_xpm[] = {
 "48 48 465 2",
 "      c None",
 ".     c #BF8F00",
index e2b7d1a..c4fde0c 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * image_xpm[] = {
+static const char * image_xpm[] = {
 "48 48 571 2",
 "      c None",
 ".     c #BC8B00",
index 030074e..fdaf6c1 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * patient_xpm[] = {
+static const char * patient_xpm[] = {
 "48 48 687 2",
 "      c None",
 ".     c #E7903C",
index 751f8ce..3b66419 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * root_xpm[] = {
+static const char * root_xpm[] = {
 "48 48 833 2",
 "      c None",
 ".     c #B10505",
index 1a94d6a..749ceee 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * series_xpm[] = {
+static const char * series_xpm[] = {
 "48 48 886 2",
 "      c None",
 ".     c #007CBA",
index 0a29012..d16c3d1 100644 (file)
@@ -1,5 +1,5 @@
 /* XPM */
-static char * study_xpm[] = {
+static const char * study_xpm[] = {
 "48 48 536 2",
 "      c None",
 ".     c #9D9EA1",