[Libreoffice-commits] core.git: dtrans/source
Stephan Bergmann
sbergman at redhat.com
Wed Sep 27 06:46:35 UTC 2017
dtrans/source/win32/dtobj/DOTransferable.cxx | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
New commits:
commit 079eee6fdb3883029cf3bf4ca861ed2a7c06058d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Sep 27 08:46:07 2017 +0200
loplugin:unnecessarycatchthrow (clang-cl)
Change-Id: Ie564d16cbd23929cea0e54d38a451b4bfa4fbe84
diff --git a/dtrans/source/win32/dtobj/DOTransferable.cxx b/dtrans/source/win32/dtobj/DOTransferable.cxx
index 4303c69b3fb7..311e3a2320b9 100644
--- a/dtrans/source/win32/dtobj/DOTransferable.cxx
+++ b/dtrans/source/win32/dtobj/DOTransferable.cxx
@@ -230,14 +230,8 @@ Any SAL_CALL CDOTransferable::getTransferData( const DataFlavor& aFlavor )
// check CF_DIB availability as an alternative
fetc.setClipformat(CF_DIB);
- try
- {
- clipDataStream = getClipboardData( fetc );
- }
- catch( UnsupportedFlavorException& )
- {
- throw; // pass through, tried all possibilities
- }
+ clipDataStream = getClipboardData( fetc );
+ // pass UnsupportedFlavorException out, tried all possibilities
}
else
throw; // pass through exception
More information about the Libreoffice-commits
mailing list