[Uml-devel] Gratuitous usage of "and" breaks compilation

Oliver Kellogg Oliver.Kellogg at t-online.de
Fri Jan 31 16:14:03 UTC 2003


Hi,

Please avoid the new operators "and"/"or"/"xor", they
break compilation with gcc-2.95.

Thanks,
Oliver

--- codegenerator.cpp.cvs	Tue Jan 28 19:59:04 2003
+++ codegenerator.cpp	Sat Feb  1 00:45:38 2003
@@ -84,7 +84,7 @@
 
 	// Convert all "." to "/" : Platform-specific path separator
 	name.replace(QRegExp("\\."),"/"); // Simple hack!
- 	if (ext != ".java" and ext != ".pm" and ext != ".py") {
+ 	if (ext != ".java" && ext != ".pm" && ext != ".py") {
 		package = package.lower();
 		name = name.lower();
 	}
--- codegenerators/perlwriter.cpp.cvs	Tue Jan 28 18:25:14 2003
+++ codegenerators/perlwriter.cpp	Sat Feb  1 00:33:54 2003
@@ -61,9 +61,9 @@
 			newDir = regEx.cap(1);
 			fragment.remove(0, (regEx.pos(2) + 2)); // get round 
strange minimal matching bug
 			existing->setPath(curDir + "/" + newDir);
-			if (not existing->exists()) {
+			if (! existing->exists()) {
 				existing->setPath(curDir);
-				if (not existing->mkdir(newDir)) {
+				if (! existing->mkdir(newDir)) {
 					emit codeGenerated(c, false);
 					return;
 				}





More information about the umbrello-devel mailing list