diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-11 10:06:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-11 10:07:08 +0200 |
commit | 776a3f14f2d987312b926ebc1ad09321a3a87f0d (patch) | |
tree | 09be8f37156fb9147e306dbd27d5dfa8e282c43f /svtools | |
parent | f60e521f24863643c7befed7f84db7d659c3c547 (diff) |
convert expressions like 'size() == 0' to 'empty()'
Change-Id: Ia5c8c0f38a347f398d587970a22e03f29ffd37af
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/transfer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index acdc429185d5..0de880d74677 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -308,7 +308,7 @@ Any SAL_CALL TransferableHelper::getTransferData( const DataFlavor& rFlavor ) Any SAL_CALL TransferableHelper::getTransferData2( const DataFlavor& rFlavor, const OUString& rDestDoc ) throw (UnsupportedFlavorException, IOException, RuntimeException, std::exception) { - if( !maAny.hasValue() || !mpFormats->size() || ( maLastFormat != rFlavor.MimeType ) ) + if( !maAny.hasValue() || mpFormats->empty() || ( maLastFormat != rFlavor.MimeType ) ) { const SolarMutexGuard aGuard; @@ -321,7 +321,7 @@ Any SAL_CALL TransferableHelper::getTransferData2( const DataFlavor& rFlavor, co bool bDone = false; // add formats if not already done - if( !mpFormats->size() ) + if( mpFormats->empty() ) AddSupportedFormats(); // check alien formats first and try to get a substitution format @@ -431,7 +431,7 @@ Sequence< DataFlavor > SAL_CALL TransferableHelper::getTransferDataFlavors() thr try { - if( !mpFormats->size() ) + if( mpFormats->empty() ) AddSupportedFormats(); } catch( const ::com::sun::star::uno::Exception& ) @@ -459,7 +459,7 @@ sal_Bool SAL_CALL TransferableHelper::isDataFlavorSupported( const DataFlavor& r try { - if( !mpFormats->size() ) + if( mpFormats->empty() ) AddSupportedFormats(); } catch( const ::com::sun::star::uno::Exception& ) |