D27646: smb: apply a whole bunch of static analyzer improvements

2020-02-26 Thread Harald Sitter
This revision was automatically updated to reflect the committed changes.
Closed by commit R320:70f2dc8521ff: smb: apply a whole bunch of static analyzer 
improvements (authored by sitter).

REPOSITORY
  R320 KIO Extras

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D27646?vs=76354=76451

REVISION DETAIL
  https://phabricator.kde.org/D27646

AFFECTED FILES
  smb/dnssddiscoverer.cpp
  smb/kio_smb.cpp
  smb/kio_smb.h
  smb/kio_smb_auth.cpp
  smb/kio_smb_browse.cpp
  smb/kio_smb_dir.cpp
  smb/kio_smb_file.cpp
  smb/kio_smb_internal.cpp
  smb/kio_smb_internal.h
  smb/kio_smb_mount.cpp

To: sitter, ngraham
Cc: kde-frameworks-devel, kfm-devel, pberestov, iasensio, fprice, LeGast00n, 
cblack, MrPepe, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, 
michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, 
emmanuelp, mikesomov


D27646: smb: apply a whole bunch of static analyzer improvements

2020-02-25 Thread Nathaniel Graham
ngraham accepted this revision.
This revision is now accepted and ready to land.

REPOSITORY
  R320 KIO Extras

BRANCH
  tidy

REVISION DETAIL
  https://phabricator.kde.org/D27646

To: sitter, ngraham
Cc: kde-frameworks-devel, kfm-devel, pberestov, iasensio, fprice, LeGast00n, 
cblack, MrPepe, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, 
michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, 
emmanuelp, mikesomov


D27646: smb: apply a whole bunch of static analyzer improvements

2020-02-25 Thread Harald Sitter
sitter created this revision.
sitter added a reviewer: ngraham.
Herald added projects: Dolphin, Frameworks.
Herald added subscribers: kfm-devel, kde-frameworks-devel.
sitter requested review of this revision.

REVISION SUMMARY
  among other things:
  
  - {} initialize the posix structs
  - =default d/ctors where appropriate
  - synced argument names between header and cpp
  - no c-style casting
  - while(true) instead of while(1)
  - initialize class members that could previously have gone uninitialized
  - no single-line-multi-variable declaration

TEST PLAN
  builds

REPOSITORY
  R320 KIO Extras

BRANCH
  tidy

REVISION DETAIL
  https://phabricator.kde.org/D27646

AFFECTED FILES
  smb/dnssddiscoverer.cpp
  smb/kio_smb.cpp
  smb/kio_smb.h
  smb/kio_smb_auth.cpp
  smb/kio_smb_browse.cpp
  smb/kio_smb_dir.cpp
  smb/kio_smb_file.cpp
  smb/kio_smb_internal.cpp
  smb/kio_smb_internal.h
  smb/kio_smb_mount.cpp

To: sitter, ngraham
Cc: kde-frameworks-devel, kfm-devel, pberestov, iasensio, fprice, LeGast00n, 
cblack, MrPepe, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, 
michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, 
emmanuelp, mikesomov