[Liblas-commits] hg-main-tree: make DescribeType take in a const char*

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Mar 16 11:47:26 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/f97e99fce906
changeset: 277:f97e99fce906
user:      Howard Butler <hobu.inc at gmail.com>
date:      Wed Mar 16 10:47:12 2011 -0500
description:
make DescribeType take in a const char*

diffstat:

 include/libpc/drivers/oci/oci_wrapper.h |   2 +-
 src/drivers/oci/oci_wrapper.cpp         |  16 ++++++++--------
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r 3ac255be5659 -r f97e99fce906 include/libpc/drivers/oci/oci_wrapper.h
--- a/include/libpc/drivers/oci/oci_wrapper.h	Wed Mar 16 10:38:32 2011 -0500
+++ b/include/libpc/drivers/oci/oci_wrapper.h	Wed Mar 16 10:47:12 2011 -0500
@@ -315,7 +315,7 @@
     void                DestroyType( sdo_geometry** pphData );
     void                CreateType( OCIArray** phData , OCIType* type);
     void                DestroyType( OCIArray** phData );
-    OCIType*            DescribeType( char *pszTypeName );
+    OCIType*            DescribeType( const char *pszTypeName );
 
     bool                Succeeded() { return bSuceeeded; };
 
diff -r 3ac255be5659 -r f97e99fce906 src/drivers/oci/oci_wrapper.cpp
--- a/src/drivers/oci/oci_wrapper.cpp	Wed Mar 16 10:38:32 2011 -0500
+++ b/src/drivers/oci/oci_wrapper.cpp	Wed Mar 16 10:47:12 2011 -0500
@@ -149,7 +149,7 @@
     }
 
     if( CheckError( OCIAttrSet((dvoid *) hSession, (ub4) OCI_HTYPE_SESSION,
-        (dvoid *) pszUserId, (ub4) strlen((char *) pszUserId),
+        (dvoid *) pszUserId, (ub4) strlen((const char *) pszUserId),
         (ub4) OCI_ATTR_USERNAME, hError), hError ) )
     {
         return;
@@ -224,12 +224,12 @@
         (size_t) 0,
         (dvoid**) NULL ), hError );
 
-    hNumArrayTDO    = DescribeType( (char*) SDO_NUMBER_ARRAY );
-    hGeometryTDO    = DescribeType( (char*) SDO_GEOMETRY );
-    hGeoRasterTDO   = DescribeType( (char*) SDO_GEORASTER );
-    hPCTDO          = DescribeType( (char*) SDO_PC );
-    hElemArrayTDO   = DescribeType( (char*) SDO_ELEM_INFO_ARRAY);
-    hOrdnArrayTDO   = DescribeType( (char* ) SDO_ORDINATE_ARRAY);
+    hNumArrayTDO    = DescribeType( SDO_NUMBER_ARRAY );
+    hGeometryTDO    = DescribeType( SDO_GEOMETRY );
+    hGeoRasterTDO   = DescribeType( SDO_GEORASTER );
+    hPCTDO          = DescribeType( SDO_PC );
+    hElemArrayTDO   = DescribeType( SDO_ELEM_INFO_ARRAY);
+    hOrdnArrayTDO   = DescribeType( SDO_ORDINATE_ARRAY);
 }
 
 OWConnection::~OWConnection()
@@ -262,7 +262,7 @@
         CPLFree(pszServer);
 }
 
-OCIType* OWConnection::DescribeType( char *pszTypeName )
+OCIType* OWConnection::DescribeType( const char *pszTypeName )
 {
     OCIParam* hParam    = NULL;
     OCIRef*   hRef      = NULL;


More information about the Liblas-commits mailing list