summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-03-20 02:45:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-02-02 00:30:11 +0100
commitfc8564a5f04b90b998e792444f70550272e78ddb (patch)
treeb48d20d9c4a98d3a7bd078fe43e671582a96fa00 /src
parent961eb3f6e276b4a3609328a3076ef790026e9c03 (diff)
downloadqt3-fc8564a5f04b90b998e792444f70550272e78ddb.tar.gz
qt3-fc8564a5f04b90b998e792444f70550272e78ddb.zip
Remove dates from generated files.
This is related to the effort for reproducible builds. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src')
-rw-r--r--src/moc/moc.y6
-rw-r--r--src/moc/moc_yacc.cpp6
2 files changed, 4 insertions, 8 deletions
diff --git a/src/moc/moc.y b/src/moc/moc.y
index b117b68..e946ca0 100644
--- a/src/moc/moc.y
+++ b/src/moc/moc.y
@@ -2833,7 +2833,7 @@ void generateClass() // generate C++ source code for a class
{
const char *hdr1 = "/****************************************************************************\n"
"** %s meta object code from reading C++ file '%s'\n**\n";
- const char *hdr2 = "** Created: %s\n";
+ const char *hdr2 = "** Created by: The Qt Meta Object Compiler version %d (Qt %s)\n";
const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n";
const char *hdr4 = "*****************************************************************************/\n\n";
int i;
@@ -2863,8 +2863,6 @@ void generateClass() // generate C++ source code for a class
g->gen_count++;
if ( g->gen_count == 1 ) { // first class to be generated
- QDateTime dt = QDateTime::currentDateTime();
- QCString dstr = dt.toString().ascii();
QCString fn = g->fileName;
i = g->fileName.length()-1;
while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-1] != '\\' )
@@ -2872,7 +2870,7 @@ void generateClass() // generate C++ source code for a class
if ( i >= 0 )
fn = &g->fileName[i];
fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn);
- fprintf( out, hdr2, (const char*)dstr );
+ fprintf( out, hdr2, formatRevision, QT_VERSION_STR );
fprintf( out, "%s", hdr3 );
fprintf( out, "%s", hdr4 );
diff --git a/src/moc/moc_yacc.cpp b/src/moc/moc_yacc.cpp
index 8d48f86..c5557df 100644
--- a/src/moc/moc_yacc.cpp
+++ b/src/moc/moc_yacc.cpp
@@ -5659,7 +5659,7 @@ void generateClass() // generate C++ source code for a class
{
const char *hdr1 = "/****************************************************************************\n"
"** %s meta object code from reading C++ file '%s'\n**\n";
- const char *hdr2 = "** Created: %s\n";
+ const char *hdr2 = "** Created by: The Qt Meta Object Compiler version %d (Qt %s)\n";
const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n";
const char *hdr4 = "*****************************************************************************/\n\n";
int i;
@@ -5689,8 +5689,6 @@ void generateClass() // generate C++ source code for a class
g->gen_count++;
if ( g->gen_count == 1 ) { // first class to be generated
- QDateTime dt = QDateTime::currentDateTime();
- QCString dstr = dt.toString().ascii();
QCString fn = g->fileName;
i = g->fileName.length()-1;
while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-1] != '\\' )
@@ -5698,7 +5696,7 @@ void generateClass() // generate C++ source code for a class
if ( i >= 0 )
fn = &g->fileName[i];
fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn);
- fprintf( out, hdr2, (const char*)dstr );
+ fprintf( out, hdr2, formatRevision, QT_VERSION_STR );
fprintf( out, "%s", hdr3 );
fprintf( out, "%s", hdr4 );