Kaydet (Commit) 1cb73f34 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS ucbfixes04 (1.11.138); FILE MERGED

2007/12/06 15:33:29 kso 1.11.138.1: #81459# - Removed useless openStream() call from create_ucb_content().
Issue number:
Submitted by:
Reviewed by:
üst d48d54dc
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: dp_ucb.cxx,v $ * $RCSfile: dp_ucb.cxx,v $
* *
* $Revision: 1.11 $ * $Revision: 1.12 $
* *
* last change: $Author: ihi $ $Date: 2007-06-05 15:05:48 $ * last change: $Author: obo $ $Date: 2008-01-04 14:34:05 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -70,15 +70,23 @@ bool create_ucb_content( ...@@ -70,15 +70,23 @@ bool create_ucb_content(
bool throw_exc ) bool throw_exc )
{ {
try { try {
// Existense check...
// content ctor/isFolder() will throw exception in case the resource
// does not exist.
// dilemma: no chance to use the given iahandler here, because it would // dilemma: no chance to use the given iahandler here, because it would
// raise no such file dialogs, else no interaction for // raise no such file dialogs, else no interaction for
// passwords, ...? xxx todo // passwords, ...? xxx todo
::ucbhelper::Content ucbContent( ::ucbhelper::Content ucbContent(
url, Reference<XCommandEnvironment>() ); url, Reference<XCommandEnvironment>() );
if (! ucbContent.isFolder())
ucbContent.openStream()->closeInput(); ucbContent.isFolder();
if (ret_ucbContent != 0) if (ret_ucbContent != 0)
*ret_ucbContent = ::ucbhelper::Content( url, xCmdEnv ); {
ucbContent.setCommandEnvironment( xCmdEnv );
*ret_ucbContent = ucbContent;
}
return true; return true;
} }
catch (RuntimeException &) { catch (RuntimeException &) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment