[Libreoffice-commits] core.git: fpicker/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Jul 31 02:30:12 UTC 2017


 fpicker/source/office/RemoteFilesDialog.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 20ecb4b7b807b63d25195c44c02cb5bf0624ab7a
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Jul 31 02:22:30 2017 +0200

    use empty instead of size() == 0
    
    Change-Id: I08b1e73323a15dd977daba98946e7deec3967503
    Reviewed-on: https://gerrit.libreoffice.org/40575
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index fd9a29a14b3b..ca37b71c8c15 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -526,7 +526,7 @@ int RemoteFilesDialog::GetSelectedServicePos()
     int nPos = 0;
     int i = -1;
 
-    if( m_aServices.size() == 0 )
+    if( m_aServices.empty() )
         return -1;
 
     while( nPos < ( int )m_aServices.size() )


More information about the Libreoffice-commits mailing list