code quality errors cleanup
Fixed some errors based on the code quality report.
- Critical - Out of bounds access in expression 'm_defaultPassword[i]' because 'm_defaultPassword' is empty and 'i' may be non-zero. (CWE-398) in smb/smbauthenticator.cpp:47
From QT6 code: inline QChar &QString::operator[](qsizetype i) { Q_ASSERT(i >= 0 && i < size()); return data()[i]; }
-
Major - Member variable 'ArchiveProtocolBase::m_mtime' is not initialized in the constructor. (CWE-398) in archive/kio_archivebase.cpp:36
-
Major - Function 'makeTimeFromLs' argument order different: declaration 'dayStr, monthStr, timeyearStr' definition 'monthStr, dayStr, timeyearStr' (CWE-683) in fish/fish.cpp:839
-
Major - Member variable 'Private::controls' is not initialized in the constructor. (CWE-398) in kfileaudiopreview/kfileaudiopreview.cpp:40
-
Major - Member variable 'RecentDocuments::m_recentDocWatch' is not initialized in the constructor. (CWE-398) in recentdocuments/recentdocuments.cpp:51
-
Minor - Class 'NextValueIterator < QSqlQuery >' has a constructor with 1 argument that is not explicit. (CWE-398) in activities/utils/qsqlquery_iterator.h:21
-
Major - 'operator=' should check for assignment to self to avoid problems with dynamic memory. (CWE-398) in nfs/kio_nfs.cpp:482