OSDN Git Service
Ivailo Monev [Wed, 8 Jan 2020 00:34:36 +0000 (00:34 +0000)]
remove accidently added QDir test Makefile file
Ivailo Monev [Wed, 8 Jan 2020 00:32:32 +0000 (00:32 +0000)]
update copyright of recently added tests
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 8 Jan 2020 00:22:47 +0000 (00:22 +0000)]
replace QHash with QSet where applicable
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Wed, 8 Jan 2020 00:04:51 +0000 (00:04 +0000)]
add assert to qChecksum32()
the function is stub for bootstrapped build only and should not be used in
that case
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 23:45:59 +0000 (23:45 +0000)]
use http/www service port to test QTcpSocket constructing in tst_QIODevice::constructing_QTcpSocket()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 22:59:01 +0000 (22:59 +0000)]
Revert "avoid temporaries in QDir::mkdir(), QDir::rmdir(), QDir::mkpath() and QDir::rmpath()"
This reverts commit
b0112afc64848f840b6daf37ef51657b77027c13.
Ivailo Monev [Tue, 7 Jan 2020 22:42:25 +0000 (22:42 +0000)]
mark gethostname() success as likely in QHostInfo::localHostName()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 18:53:21 +0000 (18:53 +0000)]
correct localtime_r() check in QDateTime::currentDateTime()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 18:44:32 +0000 (18:44 +0000)]
update README [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 18:44:17 +0000 (18:44 +0000)]
make function check notes consistent
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 18:04:31 +0000 (18:04 +0000)]
obtain getpwnam_r() buffer size via sysconf() in qt_tildeExpansion() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 17:59:32 +0000 (17:59 +0000)]
check for getpwnam_r() function during configuration
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 17:40:17 +0000 (17:40 +0000)]
check for localtime_r() and gmtime_r() functions during configuration
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 16:54:49 +0000 (16:54 +0000)]
inline qstricmp()/qstrnicmp() to strcasecmp()/strncasecmp() functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 16:04:59 +0000 (16:04 +0000)]
introduce qChecksum32()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 15:48:31 +0000 (15:48 +0000)]
remove unused report_error() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 15:45:17 +0000 (15:45 +0000)]
remove redundant scoping in QDBusMetaType::typeToSignature()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 15:44:44 +0000 (15:44 +0000)]
replace 0 with Q_NULLPTR in QDBusMetaType::typeToSignature()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 15:17:16 +0000 (15:17 +0000)]
copy logic in katie_require_function() macro from katie_optional_function() to avoid definitions for required functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 15:14:55 +0000 (15:14 +0000)]
correct loop expression in createFileFromTemplate()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 14:35:25 +0000 (14:35 +0000)]
add note that check_function_exists() and check_symbol_exists() cache results
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 14:27:48 +0000 (14:27 +0000)]
check for getpwuid_r() and getgrgid_r() functions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 04:59:52 +0000 (04:59 +0000)]
use QTime instead of QDateTime as random seed
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 03:31:24 +0000 (03:31 +0000)]
fix QFileSystemEngine::createDirectory() and QFileSystemEngine::removeDirectory()
the life-time of the string created by QFile::encodeName() was probably
optimized out by the compiler causing the variables of char array type to
contain invalid data
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 02:52:55 +0000 (02:52 +0000)]
pass size of string to QString::fromLocal8Bit() where known
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Tue, 7 Jan 2020 02:52:01 +0000 (02:52 +0000)]
avoid temporaries in QDir::mkdir(), QDir::rmdir(), QDir::mkpath() and QDir::rmpath()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 22:08:55 +0000 (22:08 +0000)]
avoid temporaries in QComboBoxPrivate::emitActivated() and QComboBoxPrivate::_q_emitHighlighted()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 21:58:15 +0000 (21:58 +0000)]
use signle variable assignment in QComboBox::findData()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 21:53:38 +0000 (21:53 +0000)]
remove supposedly fast scrolling case from QComboBoxPrivateScroller
the timer has 100ms interval so emiting three signals in a row and checking
for conditions on mouse events is sub-optimal
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 19:09:33 +0000 (19:09 +0000)]
use foreach() for iteration in QDBusMessagePrivate::makeLocal()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 17:14:41 +0000 (17:14 +0000)]
return if writing function failed in QSettingsPrivate::write()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 16:43:23 +0000 (16:43 +0000)]
use foreach() for iteration in QFormBuilderExtra::applyBuddy()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 16:38:57 +0000 (16:38 +0000)]
replze 0 with Q_NULLPTR in QFormBuilderExtra::applyBuddy()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 16:33:20 +0000 (16:33 +0000)]
use foreach() for iteration in QAbstractFormBuilder::setupColorGroup()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 16:32:55 +0000 (16:32 +0000)]
avoid temporary in QAbstractFormBuilder::computeProperties()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 16:21:13 +0000 (16:21 +0000)]
remove redundant QDir class forward declaration from textbuilder_p header
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 16:09:02 +0000 (16:09 +0000)]
replace Q_ASSERT(0) with Q_ASSERT(false)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 15:49:22 +0000 (15:49 +0000)]
use foreach() for iteration in QAbstractFormBuilder::applyProperties()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 15:48:59 +0000 (15:48 +0000)]
mark QAbstractFormBuilder::toVariant() property argument as const
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 15:36:56 +0000 (15:36 +0000)]
add QTextObject test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 15:33:29 +0000 (15:33 +0000)]
add QX11Info test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 15:29:06 +0000 (15:29 +0000)]
add QDBusServiceWatcher test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 15:10:10 +0000 (15:10 +0000)]
add QTextFormat test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 15:05:05 +0000 (15:05 +0000)]
add QTextCursor test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 15:00:40 +0000 (15:00 +0000)]
add QTextDocument test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 14:46:23 +0000 (14:46 +0000)]
add QSyntaxHighlighter test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 14:43:31 +0000 (14:43 +0000)]
add QSignalMapper test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 14:19:23 +0000 (14:19 +0000)]
add QIODevice test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 14:06:38 +0000 (14:06 +0000)]
add QElapsedTimer test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 14:06:11 +0000 (14:06 +0000)]
add operator<(const QElapsedTimer &v1, const QElapsedTimer &v2) for tests
removed before the initial import for some reason
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 13:56:21 +0000 (13:56 +0000)]
add QDirIterator test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 01:44:19 +0000 (01:44 +0000)]
use fromstrerror_helper() to obtain error in qdlerror()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 01:42:57 +0000 (01:42 +0000)]
check return value of strerror_r() in fromstrerror_helper()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Mon, 6 Jan 2020 01:26:40 +0000 (01:26 +0000)]
require strerror_r(), realpath() and unsetenv() from the host
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 23:49:53 +0000 (23:49 +0000)]
remove unused QLCDNumberPrivate::drawString() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 23:39:13 +0000 (23:39 +0000)]
remove redundant uint() constructs in QBitArray::testBit(), QBitArray::setBit(), QBitArray::clearBit() and QBitArray::toggleBit()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 23:33:19 +0000 (23:33 +0000)]
remove redundant header inclusions from qglobal source file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 23:30:01 +0000 (23:30 +0000)]
remove redundant QT_ARMFPA definition check in qnumeric source file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 23:18:16 +0000 (23:18 +0000)]
remove redundant const_cast<> in QDomTextPrivate::save()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 23:17:55 +0000 (23:17 +0000)]
mark QDomTextPrivate::splitText() warning case as unlikely
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 22:55:48 +0000 (22:55 +0000)]
call parent connect() rather than QObject::connect() in QDBusServer constructor
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 22:54:55 +0000 (22:54 +0000)]
replace 0 with Q_NULLPTR in QDBusPendingCallPrivate constructor
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 22:54:30 +0000 (22:54 +0000)]
use static QString::number() in QDomElement::setAttribute()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 22:31:08 +0000 (22:31 +0000)]
remove unused qDBusRegisterMetaType() argument
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 22:22:49 +0000 (22:22 +0000)]
avoid temporary in QDir::setSearchPaths()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 22:10:48 +0000 (22:10 +0000)]
use foreach() for iteration in QDirIteratorPrivate::matchesFilters()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 21:42:58 +0000 (21:42 +0000)]
adjust QTemporaryFile asserts
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 21:15:08 +0000 (21:15 +0000)]
mark the invalid environment variable case as unlikely in QProcessEnvironmentPrivate::fromList()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 21:14:14 +0000 (21:14 +0000)]
reserve space for elements from QProcessEnvironmentPrivate::fromList()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 21:11:32 +0000 (21:11 +0000)]
remove now redundant qcoreapplication header inclusion from qtemporaryfile source file
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 19:43:19 +0000 (19:43 +0000)]
add QTemporaryFile test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 19:42:22 +0000 (19:42 +0000)]
remove compatibility bits from createFileFromTemplate() function
fixes crash/assert too and increase default template length to 10 to deal
with collisions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 17:08:12 +0000 (17:08 +0000)]
replace typedefs with the actual type in createFileFromTemplate() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 15:04:20 +0000 (15:04 +0000)]
indent QDBusMetaType::signatureToType() and QDBusMetaType::signatureToType()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 15:03:38 +0000 (15:03 +0000)]
avoid temporary in QDBusMetaType::demarshall()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 04:21:13 +0000 (04:21 +0000)]
optimize QInotifyFileSystemWatcherEngine::create() for case when IN_CLOEXEC is defined
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 04:19:09 +0000 (04:19 +0000)]
remove redundant fcntl() call in QInotifyFileSystemWatcherEngine::QInotifyFileSystemWatcherEngine()
also called in QInotifyFileSystemWatcherEngine::create()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 04:02:48 +0000 (04:02 +0000)]
reduce branches in QFileSystemIterator::QFileSystemIterator()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sun, 5 Jan 2020 00:13:57 +0000 (00:13 +0000)]
remove redundant internal QFSFileEnginePrivate methods
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 23:47:12 +0000 (23:47 +0000)]
mark QDir warning cases as unlikely
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 22:55:48 +0000 (22:55 +0000)]
replace break and falltrough with return in QMimeDataPrivate::getData()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 22:21:35 +0000 (22:21 +0000)]
create dbg.sh script during configuration to execute with gdb
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 22:20:33 +0000 (22:20 +0000)]
replace 0 with Q_NULLPTR in QPaintEngineExPrivate::QPaintEngineExPrivate()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 21:41:26 +0000 (21:41 +0000)]
add QNetworkDiskCache test
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 21:20:24 +0000 (21:20 +0000)]
use single variable assignment in QDBusConnectionManager::removeConnection()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 21:18:58 +0000 (21:18 +0000)]
replace 0 with Q_NULLPTR in QDBusConnectionManager::connection()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 18:48:56 +0000 (18:48 +0000)]
require suffix to be passed to QFactoryLoader constructor
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 18:45:50 +0000 (18:45 +0000)]
use static keys list in QGraphicsSystemFactory::keys() when build with QT_NO_LIBRARY defined
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 18:08:28 +0000 (18:08 +0000)]
add braces around multi-line loop in QMetaObject::indexOfProperty()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 18:07:51 +0000 (18:07 +0000)]
mark some warning cases as unlikely
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 17:17:57 +0000 (17:17 +0000)]
update internal QEvent::Type enums documentation [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 15:58:23 +0000 (15:58 +0000)]
update hand-edited moc-generated code
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 15:53:13 +0000 (15:53 +0000)]
replace private static QScriptEnginePrivate functions with their body
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 03:58:35 +0000 (03:58 +0000)]
use proper type for index in QLocale::monthName(), QLocale::standaloneMonthName(), QString QLocale::dayName() and QLocale::standaloneDayName()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 02:01:52 +0000 (02:01 +0000)]
update CMake modules copyright [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 01:22:10 +0000 (01:22 +0000)]
mark qt_splitLocaleName() faliure as unlikely in QLocalePrivate::getLangAndCountry()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 01:06:23 +0000 (01:06 +0000)]
reimplement locale name to language, script and country splitting via ICU
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 00:44:22 +0000 (00:44 +0000)]
reimplement QLocale::textDirection() via ICU
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 00:44:04 +0000 (00:44 +0000)]
introduce QLocale::MeasurementSystem::UKSystem and obtain measurement system via ICU
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
Ivailo Monev [Sat, 4 Jan 2020 00:33:31 +0000 (00:33 +0000)]
remove redundant conditional checks in QLocalePrivate::bcp47Name()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>