diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-20 08:43:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-20 12:11:11 +0200 |
commit | 1553d3787cbe0cdababf31382bf3376a3640d8cf (patch) | |
tree | b829cc1f97dac33abdf1e592a636d6fb24497f13 /dtrans/test/win32 | |
parent | c2ead5a142be19cb74127294641ec35da9e0f5c5 (diff) |
use for-range on Sequence in d*
and fix bug in GenericClipboard::initialize, where it was looping through
the arguments, but always reading the first one.
I'm guessing it was never an issue because it is always called with
only one argument
Change-Id: I8f72b6bce8c77a69c7d75115e34630e2c308261e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94553
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dtrans/test/win32')
-rw-r--r-- | dtrans/test/win32/dnd/dndTest.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dtrans/test/win32/dnd/dndTest.cxx b/dtrans/test/win32/dnd/dndTest.cxx index b9f1d841e1c5..3a022d98758d 100644 --- a/dtrans/test/win32/dnd/dndTest.cxx +++ b/dtrans/test/win32/dnd/dndTest.cxx @@ -149,7 +149,7 @@ DWORD WINAPI MTAFunc( void* threadData) StartDragData* pData= (StartDragData*)msg.wParam; Sequence<DataFlavor> seq= pData->transferable->getTransferDataFlavors(); // have a look what flavours are supported - for( int i=0; i<seq.getLength(); i++) + for( int i=0; i<seq.(); i++) { DataFlavor d= seq[i]; } |