File no-moc-date.diff of Package libqt4

--- src/tools/moc/moc.cpp
+++ src/tools/moc/moc.cpp
@@ -738,9 +738,6 @@ void Moc::parse()
 
 void Moc::generate(FILE *out)
 {
-
-    QDateTime dt = QDateTime::currentDateTime();
-    QByteArray dstr = dt.toString().toLatin1();
     QByteArray fn = filename;
     int i = filename.length()-1;
     while (i>0 && filename[i-1] != '/' && filename[i-1] != '\\')
@@ -749,8 +746,8 @@ void Moc::generate(FILE *out)
         fn = filename.mid(i);
     fprintf(out, "/****************************************************************************\n"
             "** Meta object code from reading C++ file '%s'\n**\n" , (const char*)fn);
-    fprintf(out, "** Created: %s\n"
-            "**      by: The Qt Meta Object Compiler version %d (Qt %s)\n**\n" , dstr.data(), mocOutputRevision, QT_VERSION_STR);
+    fprintf(out, "** Created:\n"
+            "**      by: The Qt Meta Object Compiler version %d (Qt %s)\n**\n" , mocOutputRevision, QT_VERSION_STR);
     fprintf(out, "** WARNING! All changes made in this file will be lost!\n"
             "*****************************************************************************/\n\n");
 
--- src/tools/rcc/rcc.cpp
+++ src/tools/rcc/rcc.cpp
@@ -732,7 +732,6 @@ bool RCCResourceLibrary::writeHeader()
         writeString("** Resource object code\n");
         writeString("**\n");
         writeString("** Created: ");
-        writeByteArray(QDateTime::currentDateTime().toString().toLatin1());
         writeString("\n**      by: The Resource Compiler for Qt version ");
         writeByteArray(QT_VERSION_STR);
         writeString("\n**\n");
--- src/tools/uic/uic.cpp
+++ src/tools/uic/uic.cpp
@@ -139,7 +139,7 @@ void Uic::writeCopyrightHeader(DomUI *ui
         out << "/********************************************************************************\n";
         out << "** Form generated from reading UI file '" << QFileInfo(opt.inputFile).fileName() << "'\n";
         out << "**\n";
-        out << "** Created: " << QDateTime::currentDateTime().toString() << "\n";
+        out << "** Created\n";
         out << "**      " << QString::fromLatin1("by: Qt User Interface Compiler version %1\n").arg(QLatin1String(QT_VERSION_STR));
         out << "**\n";
         out << "** WARNING! All changes made in this file will be lost when recompiling UI file!\n";
--- tools/qdbus/qdbusxml2cpp/qdbusxml2cpp.cpp
+++ tools/qdbus/qdbusxml2cpp/qdbusxml2cpp.cpp
@@ -520,9 +520,11 @@ static void writeProxy(const QString &fi
     } else {
         includeGuard = QLatin1String("QDBUSXML2CPP_PROXY");
     }
+#if 0
     includeGuard = QString(QLatin1String("%1_%2"))
                    .arg(includeGuard)
                    .arg(QDateTime::currentDateTime().toTime_t());
+#endif
     hs << "#ifndef " << includeGuard << endl
        << "#define " << includeGuard << endl
        << endl;
@@ -826,9 +828,11 @@ static void writeAdaptor(const QString &
     } else {
         includeGuard = QLatin1String("QDBUSXML2CPP_ADAPTOR");
     }
+#if 0
     includeGuard = QString(QLatin1String("%1_%2"))
                    .arg(includeGuard)
                    .arg(QDateTime::currentDateTime().toTime_t());
+#endif
     hs << "#ifndef " << includeGuard << endl
        << "#define " << includeGuard << endl
        << endl;
openSUSE Build Service is sponsored by