otransactedfilestream.cxx (dde7d3fa) otransactedfilestream.cxx (49b34792)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 205 unchanged lines hidden (view full) ---

214 {
215 sal_Bool bDelete = m_pStreamData->m_bDelete;
216 ::rtl::OUString aURL = m_pStreamData->m_aURL;
217 uno::Reference< ucb::XSimpleFileAccess > xFileAccess = m_pStreamData->m_xFileAccess;
218
219 delete m_pStreamData;
220 m_pStreamData = NULL;
221
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 205 unchanged lines hidden (view full) ---

214 {
215 sal_Bool bDelete = m_pStreamData->m_bDelete;
216 ::rtl::OUString aURL = m_pStreamData->m_aURL;
217 uno::Reference< ucb::XSimpleFileAccess > xFileAccess = m_pStreamData->m_xFileAccess;
218
219 delete m_pStreamData;
220 m_pStreamData = NULL;
221
222 if ( bDelete && xFileAccess.is() && aURL.getLength() )
222 if ( bDelete && xFileAccess.is() && !aURL.isEmpty() )
223 {
224 // delete the file
225 try
226 {
227 xFileAccess->kill( aURL );
228 } catch( uno::Exception& )
229 {
230 OSL_ENSURE( sal_False, "Could not remove the file!" );

--- 590 unchanged lines hidden ---
223 {
224 // delete the file
225 try
226 {
227 xFileAccess->kill( aURL );
228 } catch( uno::Exception& )
229 {
230 OSL_ENSURE( sal_False, "Could not remove the file!" );

--- 590 unchanged lines hidden ---