diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-12-15 15:26:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-12-15 22:59:54 +0100 |
commit | 15d134b4f57e66faa8bcf538a08db98dc9204c54 (patch) | |
tree | 36d0d454de0fa8976d82904639cebbdaddbae506 /include | |
parent | b846d11fed926864a80183f4572016946fa6fdc5 (diff) |
Make temp copy of dbaccess/qa/unit/data/firebird_empty.odb for testing
...in CppunitTest_dbaccess_firebird_test. Otherwise, the test would fail with
> Test name: FirebirdTest::testEmptyDBConnection
> An uncaught exception of type com.sun.star.sdbc.SQLException
> - The connection can not be established. No storage or URL was given.
if dbaccess/qa/unit/data/firebird_empty.odb is read-only, as
DocumentStorageAccess::impl_openSubStorage_nothrow
(dbaccess/source/core/dataaccess/ModelImpl.cxx) takes
m_pModelImplementation->m_bDocumentReadOnly into account and returns a null
xStorage.
Adds a move ctor to utl::TempFile (thus causing copy ctor and copy assignment op
to be implicitly deleted), but leaves any move assignment op undeclared for now,
as none happens to be needed (yet).
Change-Id: I6f9eff07eb54f1364a0560ffa4cf1f676a319d16
Reviewed-on: https://gerrit.libreoffice.org/46561
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/tempfile.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/unotools/tempfile.hxx b/include/unotools/tempfile.hxx index 9f5ac4c45dab..791b51573f29 100644 --- a/include/unotools/tempfile.hxx +++ b/include/unotools/tempfile.hxx @@ -49,9 +49,6 @@ class UNOTOOLS_DLLPUBLIC TempFile bool bIsDirectory; bool bKillingFileEnabled; - TempFile( const TempFile& ) = delete; - TempFile& operator=(const TempFile&) = delete; - public: /** Create a temporary file or directory, in the default tempfile folder or if possible in a given folder. @@ -72,6 +69,8 @@ public: TempFile( const OUString& rLeadingChars, bool _bStartWithZero=true, const OUString* pExtension=nullptr, const OUString* pParent=nullptr, bool bCreateParentDirs=false ); + TempFile(TempFile && other); + /** TempFile will be removed from disk in dtor if EnableKillingFile(true) was called before. Temporary directories will be removed recursively in that case. |