Commit Graph

19 Commits

Author SHA1 Message Date
Oliver Wolff 34616c5e78 dumpdoc: Adapt to QFile::open being [[nodiscard]]
As a drive by: Return early if opening the output file fails.

Fixes: QTBUG-132205
Change-Id: I571e725db52fb47510f3ba4982a8debe91314e50
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-12-16 08:20:18 +01:00
Lucie Gérard 2e7234cc40 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: Ibdefc58cad3b83d0d117fc333de76ccb5177a621
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-10 16:20:09 +02:00
Friedemann Kleint 5870a1e742 Introduce nullptr
Apply Fixits by Qt Creator with some amendments.

Change-Id: Ia47cee2d55432ddc14635aa593c52d80ab39cc82
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2019-06-04 15:47:22 +02:00
Fredrik Orderud b09610e105 Replace CoInitialize calls with CoInitializeEx
Done to make single-threaded apartment (STA) usage more explicit.
CoInitializeEx(0, COINIT_APARTMENTTHREADED) does exactly the same as
CoInitialize(0), so there is no change in behavior.

REF: https://docs.microsoft.com/nb-no/windows/desktop/api/combaseapi/nf-combaseapi-coinitializeex

Change-Id: I2e2f77745b4360b1da1e6c284551d0f709aba546
Reviewed-by: Andre de la Rocha <andre.rocha@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
2018-08-13 06:09:08 +00:00
Antti Kokko ef14c3183f Updated license headers
From Qt 5.7 -> tools & applications are licensed under GPL v3 with some
exceptions, see
http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/
Updated license headers to use new GPL-EXCEPT header instead of LGPL21 one
(in those files which will be under GPL 3 with exceptions)

Change-Id: I28b956229a96fd982b22640226a716c1a4f3aa0d
Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
2016-01-25 12:50:44 +00:00
Jani Heikkinen bbfb9dadbf Update copyright headers
Qt copyrights are now in The Qt Company, so we could update the source
code headers accordingly. In the same go we should also fix the links to
point to qt.io.

Change-Id: I2febb46d711c51eeb08f13418a4fc15ab0502f1a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
2015-02-11 16:16:42 +00:00
Friedemann Kleint a874814503 Fix usage of QString::left()/QString::right().
QString::truncate(), QString::remove() or
QString::chop() should be used when assigning to self.

Change-Id: Ic0582ad3bc9389cbd315dee885921628197747f2
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2014-10-09 16:16:17 +02:00
Maks Naumov a2f11a5c9b Tools: fix arg.toLower()
Change-Id: I4321103f75a13688de3400a1a238ac5414a0efd8
QByteArray::toLower() returns a lowercase copy of the byte array.
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
2014-09-09 13:33:35 +02:00
Jani Heikkinen 37d401da86 Update license headers and add new license files
- Renamed LICENSE.LGPL to LICENSE.LGPLv21
- Added LICENSE.LGPLv3 & LICENSE.GPLv2
- Removed LICENSE.GPL

Change-Id: Ib9c4cfb6651a523e2da710f0a71586ec84538007
Reviewed-by: Antti Kokko <antti.kokko@digia.com>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
2014-08-26 12:11:45 +02:00
Oswald Buddenhagen b29f51357b whitespace fixes
expand tabs, fix indentation, remove trailing whitespace.

Change-Id: Ibec1bbad9e8faff81671ce9d1c7bb4fb9b340bb9
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2014-01-20 13:10:01 +01:00
Frederik Gladhorn 27cbc14bad Merge remote-tracking branch 'origin/stable' into dev
Change-Id: I68995b86daa2caaa1806107631edaeb2d8dc66c3
2013-02-25 11:59:44 +01:00
Friedemann Kleint c31e5dfc55 Check return values of CoInitialize().
Change-Id: I97e94517e1fb1af89d992db9c1a8c15aba5f8425
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-01-18 13:33:04 +01:00
Sergio Ahumada b5366d0fa7 Update copyright year in Digia's license headers
Change-Id: Ia19cb01ac9f0c5e3863e684d2f701ac424ba64f4
Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
2013-01-10 17:54:38 +01:00
Iikka Eklund 30fc29ae5c Change copyrights from Nokia to Digia
Change copyrights and license headers from Nokia to Digia

Change-Id: I4060147644d7ca34ccff71b3deb30e242b611dab
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
2012-09-23 08:12:54 +02:00
Jason McDonald 75a00446bc Remove "All rights reserved" line from license headers.
As in the past, to avoid rewriting various autotests that contain
line-number information, an extra blank line has been inserted at the
end of the license text to ensure that this commit does not change the
total number of lines in the license header.

Change-Id: I82638e41d9adc9180fef26a5548f775399afafb2
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-01-30 06:39:24 +01:00
Jason McDonald a5928f1d78 Update obsolete contact address.
Replace Nokia contact email address with Qt Project website.

Change-Id: I63ca8dd2d86ed3428448556a02a19004f662402a
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-01-20 07:40:09 +01:00
Jason McDonald d5e48ccae2 Update copyright year in license headers.
Change-Id: I2bab6c14208911188d66eeab71ee6b2707355483
Sanity-Review: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2012-01-06 02:12:36 +01:00
Jyri Tahtela 25952178a6 Update licenseheader text in source files for qtactiveqt Qt module
Updated version of LGPL and FDL licenseheaders.
Apply release phase licenseheaders for all source files.

Reviewed-by: Trust Me
2011-05-24 16:22:46 +03:00
Qt by Nokia 41c8d3db37 Initial import from the monolithic Qt.
This is the beginning of revision history for this module. If you
want to look at revision history older than this, please refer to the
Qt Git wiki for how to use Git history grafting. At the time of
writing, this wiki is located here:

http://qt.gitorious.org/qt/pages/GitIntroductionWithQt

If you have already performed the grafting and you don't see any
history beyond this commit, try running "git log" with the "--follow"
argument.

Branched from the monolithic repo, Qt master branch, at commit
896db169ea224deb96c59ce8af800d019de63f12
2011-04-27 12:05:43 +02:00