Tag: odbmacros_2_5
User: fs      
Date: 2008-02-26 14:07:47+0000
Modified:
   dba/dbaccess/source/core/dataaccess/databasedocument.cxx

Log:
 additional comment

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: databasedocument.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/databasedocument.cxx?r1=1.36.2.15.2.1&r2=1.36.2.15.2.2
Delta lines:  +6 -3
-------------------
--- databasedocument.cxx        2008-02-14 12:18:07+0000        1.36.2.15.2.1
+++ databasedocument.cxx        2008-02-26 14:07:44+0000        1.36.2.15.2.2
@@ -4,9 +4,9 @@
  *
  *  $RCSfile: databasedocument.cxx,v $
  *
- *  $Revision: 1.36.2.15.2.1 $
+ *  $Revision: 1.36.2.15.2.2 $
  *
- *  last change: $Author: fs $ $Date: 2008/02/14 12:18:07 $
+ *  last change: $Author: fs $ $Date: 2008/02/26 14:07:44 $
  *
  *  The Contents of this file are made available subject to
  *  the terms of GNU Lesser General Public License Version 2.1.
@@ -361,6 +361,9 @@
 // 
-----------------------------------------------------------------------------
 // XModel
 // ATTENTION: The Application controller attaches the same resource to force a 
reload.
+// TODO: this is a bug. By (API) definition, attachResource is only for 
notifying the document
+// of its resource, *not* for loading it. We should implement an XLoadable, 
and move all the
+// load logic therein.
 sal_Bool SAL_CALL ODatabaseDocument::attachResource( const ::rtl::OUString& 
_rURL, const Sequence< PropertyValue >& _aArguments ) throw (RuntimeException)
 {
     ModelMethodGuard aGuard( *this );
@@ -374,7 +377,7 @@
     ::rtl::OUString sDocumentURL( aResource.getOrDefault( "SalvagedFile", 
_rURL ) );
     if ( !sDocumentURL.getLength() )
         // this indicates "the document is being recovered, but _rURL already 
is the real document URL,
-        // not the temporary document location
+        // not the temporary document location"
         sDocumentURL = _rURL;
     m_pImpl->switchToURL( _rURL, sDocumentURL );
 




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

Reply via email to