summaryrefslogtreecommitdiffstats
path: root/src/tools/rcc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rcc')
-rw-r--r--src/tools/rcc/rcc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/rcc/rcc.cpp b/src/tools/rcc/rcc.cpp
index 8b1ebad14c..924f2904f0 100644
--- a/src/tools/rcc/rcc.cpp
+++ b/src/tools/rcc/rcc.cpp
@@ -150,7 +150,7 @@ RCCFileInfo::RCCFileInfo(const QString &name, const QFileInfo &fileInfo,
m_language = language;
m_country = country;
m_flags = flags;
- m_parent = 0;
+ m_parent = nullptr;
m_nameOffset = 0;
m_dataOffset = 0;
m_childOffset = 0;
@@ -461,7 +461,7 @@ RCCResourceLibrary::Strings::Strings() :
}
RCCResourceLibrary::RCCResourceLibrary(quint8 formatVersion)
- : m_root(0),
+ : m_root(nullptr),
m_format(C_Code),
m_verbose(false),
m_compressionAlgo(CONSTANT_COMPRESSALGO_DEFAULT),
@@ -472,8 +472,8 @@ RCCResourceLibrary::RCCResourceLibrary(quint8 formatVersion)
m_dataOffset(0),
m_overallFlags(0),
m_useNameSpace(CONSTANT_USENAMESPACE),
- m_errorDevice(0),
- m_outDevice(0),
+ m_errorDevice(nullptr),
+ m_outDevice(nullptr),
m_formatVersion(formatVersion),
m_noZstd(false)
{
@@ -707,7 +707,7 @@ bool RCCResourceLibrary::interpretResourceFile(QIODevice *inputDevice,
return false;
}
- if (m_root == 0) {
+ if (m_root == nullptr) {
const QString msg = QString::fromLatin1("RCC: Warning: No resources in '%1'.\n").arg(fname);
m_errorDevice->write(msg.toUtf8());
if (!listMode && m_format == Binary) {
@@ -770,9 +770,9 @@ void RCCResourceLibrary::reset()
{
if (m_root) {
delete m_root;
- m_root = 0;
+ m_root = nullptr;
}
- m_errorDevice = 0;
+ m_errorDevice = nullptr;
m_failedResources.clear();
}