patch_for_bug_995.txt

Steven Mizuno, 2008-03-16 07:03 AM

Download (998 Bytes)

 
1
Index: src/providers/postgres/qgspostgresprovider.h
2
===================================================================
3
--- src/providers/postgres/qgspostgresprovider.h	(revision 8220)
4
+++ src/providers/postgres/qgspostgresprovider.h	(working copy)
5
@@ -69,7 +69,7 @@
6
     /**
7
       *   Returns the permanent storage type for this layer as a friendly name.
8
       */
9
-    QString storageType();
10
+    virtual QString storageType() const;
11
 
12
     /*! Get the QgsSpatialRefSys for this layer
13
      * @note Must be reimplemented by each provider. 
14
Index: src/providers/postgres/qgspostgresprovider.cpp
15
===================================================================
16
--- src/providers/postgres/qgspostgresprovider.cpp	(revision 8220)
17
+++ src/providers/postgres/qgspostgresprovider.cpp	(working copy)
18
@@ -334,7 +334,7 @@
19
   connection = 0;
20
 }
21
 
22
-QString QgsPostgresProvider::storageType()
23
+QString QgsPostgresProvider::storageType() const
24
 {
25
   return "PostgreSQL database with PostGIS extension";
26
 }