summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-04-12 14:57:09 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-19 20:10:46 +0200
commit52cad781d39ee47b3e918f39900f4e11cc88b9fa (patch)
tree9de53278a12d8f6b6ebfb8715cf38c4fa7776566
parent0d57da067b47eac51ea725d267069d6e616cf586 (diff)
restore compat with older perl versions
the // operator is a tad too new. Task-number: QTBUG-30637 Change-Id: I3672d41a4a17937ffea251f0937b09045d6c386d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rwxr-xr-xbin/syncqt2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/syncqt b/bin/syncqt
index 306c4df57a..a579cad41d 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -1180,7 +1180,7 @@ if($check_includes) {
}
}
} elsif ($header_skip_qt_begin_namespace_test == 0 and $line =~ /^QT_BEGIN_NAMESPACE(_[A-Z_]+)?\s*$/) {
- $qt_namespace_suffix = $1 // "";
+ $qt_namespace_suffix = defined($1) ? $1 : "";
$qt_begin_namespace_found = 1;
} elsif ($header_skip_qt_begin_namespace_test == 0 and $line =~ /^QT_END_NAMESPACE$qt_namespace_suffix\s*$/) {
$qt_end_namespace_found = 1;