C++ fix for gcc3 (which mysteriously only shows up on powerpc)

This commit is contained in:
naddy 2004-06-25 04:22:16 +00:00
parent a0365bc3f9
commit ec915dbf6b

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-src_lincvs_cpp,v 1.1 2004/06/25 04:22:16 naddy Exp $
--- src/lincvs.cpp.orig 2004-06-24 19:41:48.000000000 -0600
+++ src/lincvs.cpp 2004-06-24 19:45:42.000000000 -0600
@@ -586,7 +586,7 @@ void ApplicationWindow::checkOut()
usingSsh = true;
cvsRoot += repository;
command += "set-ssh-env.sh \"env CVS_RSH="
- + cvsRsh + " cvs -z" + COMPRESSION + " -d "
+ + cvsRsh + " cvs -z" + QString().setNum(COMPRESSION) + " -d "
+ cvsRoot + " co -P ";
if(!dlg->cvsParameter().isNull()) {
command += dlg->cvsParameter() + " ";
@@ -850,13 +850,13 @@ void ApplicationWindow::import()
if (m_curCommentFileName.length()) {
command += "set-ssh-env.sh \"env CVS_RSH="
- + cvsRsh + " cvs -z" + COMPRESSION + " -d "
+ + cvsRsh + " cvs -z" + QString().setNum(COMPRESSION) + " -d "
+ cvsRoot;
command += " import -F " + m_curCommentFileName + " ";
command += dlg->module() + " " + dlg->tag1() + " " + dlg->tag2() + "\"";
} else {//fallback to option -m
command += "set-ssh-commit-env.sh \"env CVS_RSH="
- + cvsRsh + " cvs -z" + COMPRESSION + " -d "
+ + cvsRsh + " cvs -z" + QString().setNum(COMPRESSION) + " -d "
+ cvsRoot;
command += " import -m\" ";
command += "\"" + dlg->comment() + "\" ";