User: hr      
Date: 06/06/19 19:11:36

Modified:
 /dba/connectivity/source/sdbcx/
  VUser.cxx

Log:
 INTEGRATION: CWS warnings01 (1.11.30); FILE MERGED
 2005/11/16 12:59:33 fs 1.11.30.1: #i57457# warning free code

File Changes:

Directory: /dba/connectivity/source/sdbcx/
==========================================

File [changed]: VUser.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/sdbcx/VUser.cxx?r1=1.11&r2=1.12
Delta lines:  +19 -15
---------------------
--- VUser.cxx   8 Sep 2005 07:45:04 -0000       1.11
+++ VUser.cxx   20 Jun 2006 02:11:34 -0000      1.12
@@ -53,6 +53,9 @@
 #ifndef _CONNECTIVITY_SDBCX_COLLECTION_HXX_
 #include "connectivity/sdbcx/VCollection.hxx"
 #endif
+#ifndef _DBHELPER_DBEXCEPTION_HXX_
+#include <connectivity/dbexception.hxx>
+#endif
 #ifndef _COMPHELPER_SEQUENCE_HXX_
 #include <comphelper/sequence.hxx>
 #endif
@@ -119,10 +122,11 @@
 }
 // -------------------------------------------------------------------------
 // XUser
-void SAL_CALL OUser::changePassword( const ::rtl::OUString& objPassword, const 
::rtl::OUString& newPassword ) throw(::com::sun::star::sdbc::SQLException, 
RuntimeException)
+void SAL_CALL OUser::changePassword( const ::rtl::OUString& /*objPassword*/, 
const ::rtl::OUString& /*newPassword*/ ) 
throw(::com::sun::star::sdbc::SQLException, RuntimeException)
 {
        ::osl::MutexGuard aGuard(m_aMutex);
        checkDisposed(OUser_BASE::rBHelper.bDisposed);
+    ::dbtools::throwFeatureNotImplementedException( "XUser::changePassword", 
*this );
 }
 // -------------------------------------------------------------------------
 // XGroupsSupplier
@@ -151,36 +155,34 @@
 // -------------------------------------------------------------------------
 // -------------------------------------------------------------------------
 
-sal_Int32 SAL_CALL OUser::getPrivileges( const ::rtl::OUString& objName, 
sal_Int32 objType ) throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
+sal_Int32 SAL_CALL OUser::getPrivileges( const ::rtl::OUString& /*objName*/, 
sal_Int32 /*objType*/ ) throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
 {
        ::osl::MutexGuard aGuard(m_aMutex);
        checkDisposed(OUser_BASE::rBHelper.bDisposed);
-                
-
+    ::dbtools::throwFeatureNotImplementedException( 
"XAuthorizable::changePassword", *this );
        return 0;
 }
 // -------------------------------------------------------------------------
-sal_Int32 SAL_CALL OUser::getGrantablePrivileges( const ::rtl::OUString& 
objName, sal_Int32 objType ) throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
+sal_Int32 SAL_CALL OUser::getGrantablePrivileges( const ::rtl::OUString& 
/*objName*/, sal_Int32 /*objType*/ ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
 {
        ::osl::MutexGuard aGuard(m_aMutex);
        checkDisposed(OUser_BASE::rBHelper.bDisposed);
-                
-
+    ::dbtools::throwFeatureNotImplementedException( 
"XAuthorizable::getGrantablePrivileges", *this );
        return 0;
 }
 // -------------------------------------------------------------------------
-void SAL_CALL OUser::grantPrivileges( const ::rtl::OUString& objName, 
sal_Int32 objType, sal_Int32 objPrivileges ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
+void SAL_CALL OUser::grantPrivileges( const ::rtl::OUString& /*objName*/, 
sal_Int32 /*objType*/, sal_Int32 /*objPrivileges*/ ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
 {
        ::osl::MutexGuard aGuard(m_aMutex);
        checkDisposed(OUser_BASE::rBHelper.bDisposed);
-                
+    ::dbtools::throwFeatureNotImplementedException( 
"XAuthorizable::grantPrivileges", *this );
 }
 // -------------------------------------------------------------------------
-void SAL_CALL OUser::revokePrivileges( const ::rtl::OUString& objName, 
sal_Int32 objType, sal_Int32 objPrivileges ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
+void SAL_CALL OUser::revokePrivileges( const ::rtl::OUString& /*objName*/, 
sal_Int32 /*objType*/, sal_Int32 /*objPrivileges*/ ) 
throw(::com::sun::star::sdbc::SQLException, 
::com::sun::star::uno::RuntimeException)
 {
        ::osl::MutexGuard aGuard(m_aMutex);
        checkDisposed(OUser_BASE::rBHelper.bDisposed);
-                
+    ::dbtools::throwFeatureNotImplementedException( 
"XAuthorizable::revokePrivileges", *this );
 }
 // 
-----------------------------------------------------------------------------
 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > 
SAL_CALL OUser::getPropertySetInfo(  ) 
throw(::com::sun::star::uno::RuntimeException)
@@ -193,8 +195,10 @@
        return m_Name;
 }
 // 
-----------------------------------------------------------------------------
-void SAL_CALL OUser::setName( const ::rtl::OUString& aName ) 
throw(::com::sun::star::uno::RuntimeException)
+void SAL_CALL OUser::setName( const ::rtl::OUString& /*aName*/ ) 
throw(::com::sun::star::uno::RuntimeException)
 {
+    OSL_ENSURE( false, "OUser::setName: not implemented!" );
+        // not allowed to throw an SQLException here ...
 }
 // 
-----------------------------------------------------------------------------
 // XInterface




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to