Tag: cws_src680_odbmacros2 User: fs Date: 2008-02-06 21:45:09+0000 Modified: dba/dbaccess/source/ui/querydesign/querycontroller.cxx
Log: #i49133# some initialization-related re-factoring File Changes: Directory: /dba/dbaccess/source/ui/querydesign/ =============================================== File [changed]: querycontroller.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/querycontroller.cxx?r1=1.112.2.3&r2=1.112.2.4 Delta lines: +3 -23 -------------------- --- querycontroller.cxx 2008-02-04 13:08:19+0000 1.112.2.3 +++ querycontroller.cxx 2008-02-06 21:45:06+0000 1.112.2.4 @@ -4,9 +4,9 @@ * * $RCSfile: querycontroller.cxx,v $ * - * $Revision: 1.112.2.3 $ + * $Revision: 1.112.2.4 $ * - * last change: $Author: fs $ $Date: 2008/02/04 13:08:19 $ + * last change: $Author: fs $ $Date: 2008/02/06 21:45:06 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -710,26 +710,6 @@ const NamedValueCollection& rArguments( getInitParams() ); - // connection or data source name - Reference< XConnection > xConnection; - rArguments.get_ensureType( (::rtl::OUString)PROPERTY_ACTIVE_CONNECTION, xConnection ); - if ( xConnection.is() ) - initializeConnection( xConnection ); - else - { - ::rtl::OUString sDataSourceName; - rArguments.get_ensureType( (::rtl::OUString)PROPERTY_DATASOURCENAME, sDataSourceName ); - if ( !sDataSourceName.getLength() ) - throw IllegalArgumentException( - ::rtl::OUString( String( ModuleRes( STR_NO_DATASOURCE_OR_CONNECTION ) ) ), - *this, - 1 - ); - - // TODO: respect this data source name by creating a connection, remembering it, - // and remembering that we are the owner of it - } - ::rtl::OUString sCommand; m_nCommandType = CommandType::QUERY; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
