diff options
author | Slávek Banko <[email protected]> | 2020-03-20 02:45:00 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-03-20 02:45:00 +0100 |
commit | 9d5d503f747ce54a6c048a415dae1b33d6b9b047 (patch) | |
tree | 6951ff957ca517a757d769296d79e6a3ee9bc1aa /src/moc | |
parent | 277646d8abf9312400a7d4d2bcd4e3790554892c (diff) | |
download | tqt3-9d5d503f747ce54a6c048a415dae1b33d6b9b047.tar.gz tqt3-9d5d503f747ce54a6c048a415dae1b33d6b9b047.zip |
Remove dates from generated files.
This is related to the effort for reproducible builds.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/moc')
-rw-r--r-- | src/moc/moc.y | 6 | ||||
-rw-r--r-- | src/moc/moc_yacc.cpp | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/moc/moc.y b/src/moc/moc.y index cfd8af0cb..86fd20dea 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 TQt Meta Object Compiler version %d (TQt %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 - TQDateTime dt = TQDateTime::currentDateTime(); - TQCString dstr = dt.toString().ascii(); TQCString 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, TQT_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 f5c59d84a..85da933d7 100644 --- a/src/moc/moc_yacc.cpp +++ b/src/moc/moc_yacc.cpp @@ -5708,7 +5708,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 TQt Meta Object Compiler version %d (TQt %s)\n"; const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n"; const char *hdr4 = "*****************************************************************************/\n\n"; int i; @@ -5738,8 +5738,6 @@ void generateClass() // generate C++ source code for a class g->gen_count++; if ( g->gen_count == 1 ) { // first class to be generated - TQDateTime dt = TQDateTime::currentDateTime(); - TQCString dstr = dt.toString().ascii(); TQCString fn = g->fileName; i = g->fileName.length()-1; while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-1] != '\\' ) @@ -5747,7 +5745,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, TQT_VERSION_STR ); fprintf( out, "%s", hdr3 ); fprintf( out, "%s", hdr4 ); |