Author: mysqlpp
Date: Mon Nov 24 22:46:20 2008
New Revision: 2424

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2424&view=rev
Log:
Added dummy bodies to private methods recently added to Connection
derivatives to shut Sun CC up.  VC++ won't build MySQL++ without
having bodies for these, even though it cannot ever call them.

Modified:
    trunk/lib/tcp_connection.h
    trunk/lib/uds_connection.h
    trunk/lib/wnp_connection.h

Modified: trunk/lib/tcp_connection.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/tcp_connection.h?rev=2424&r1=2423&r2=2424&view=diff
==============================================================================
--- trunk/lib/tcp_connection.h (original)
+++ trunk/lib/tcp_connection.h Mon Nov 24 22:46:20 2008
@@ -123,15 +123,15 @@
        /// \brief Provide uncallable versions of the parent class ctors we
        /// don't want to provide so we don't get warnings about hidden
        /// overloads with some compilers
-       TCPConnection(bool);
+       TCPConnection(bool) { }
        TCPConnection(const char*, const char*, const char*, const char*,
-                       unsigned int);
+                       unsigned int) { }
 
        /// \brief Explicitly override parent class version so we don't get
        /// complaints about hidden overloads with some compilers
        bool connect(const char* db, const char* server,
                        const char* user, const char* password,
-                       unsigned int port);
+                       unsigned int port) { return false; }
 };
 
 

Modified: trunk/lib/uds_connection.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/uds_connection.h?rev=2424&r1=2423&r2=2424&view=diff
==============================================================================
--- trunk/lib/uds_connection.h (original)
+++ trunk/lib/uds_connection.h Mon Nov 24 22:46:20 2008
@@ -101,15 +101,15 @@
        /// \brief Provide uncallable versions of the parent class ctors we
        /// don't want to provide so we don't get warnings about hidden
        /// overloads with some compilers
-       UnixDomainSocketConnection(bool);
+       UnixDomainSocketConnection(bool) { }
        UnixDomainSocketConnection(const char*, const char*, const char*,
-                       const char*, unsigned int);
+                       const char*, unsigned int) { }
 
        /// \brief Explicitly override parent class version so we don't get
        /// complaints about hidden overloads with some compilers
        bool connect(const char* db, const char* server,
                        const char* user, const char* password,
-                       unsigned int port);
+                       unsigned int port) { return false; }
 };
 
 

Modified: trunk/lib/wnp_connection.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/wnp_connection.h?rev=2424&r1=2423&r2=2424&view=diff
==============================================================================
--- trunk/lib/wnp_connection.h (original)
+++ trunk/lib/wnp_connection.h Mon Nov 24 22:46:20 2008
@@ -95,15 +95,15 @@
        /// \brief Provide uncallable versions of the parent class ctors we
        /// don't want to provide so we don't get warnings about hidden
        /// overloads with some compilers
-       WindowsNamedPipeConnection(bool);
+       WindowsNamedPipeConnection(bool) { }
        WindowsNamedPipeConnection(const char*, const char*, const char*,
-                       const char*, unsigned int);
+                       const char*, unsigned int) { }
 
        /// \brief Explicitly override parent class version so we don't get
        /// complaints about hidden overloads with some compilers
        bool connect(const char* db, const char* server,
                        const char* user, const char* password,
-                       unsigned int port);
+                       unsigned int port) { return false; }
 };
 
 


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to