1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Author: Andreas Beckmann <anbe@debian.org>
Description: avoid formatting warnings and drop useless int2pointer cast
--- a/src/gl/llist.h
+++ b/src/gl/llist.h
@@ -103,11 +103,13 @@ public:
/// sets current to next element + returns if there is a next element.
int next() {
- if (current) current=current->next; return (current != 0); }
+ if (current) current=current->next;
+ return (current != 0); }
/// sets current to prev. element + returns if there is a prev. element.
int prev() {
- if (current) current=current->prev; return (current != 0); }
+ if (current) current=current->prev;
+ return (current != 0); }
/// returns current element (Check first with 'done'!)
T &cur() const { return current->item;}
--- a/src/sd/dv/c2r2mlistline.c
+++ b/src/sd/dv/c2r2mlistline.c
@@ -420,7 +420,7 @@ void C2R2MListLine::DrawShape() {
CalcDirection();
DrawDirection();
CalcPositionTextShapes();
- if ((CBDMessage *)((CBObjectLinkEdge *)GetSubject())->NrOfMessages() > 0) {
+ if (((CBObjectLinkEdge *)GetSubject())->NrOfMessages() > 0) {
int i = 0;
for (GetTList()->first(); !GetTList()->done(); GetTList()->next()) {
// CBDMessage *msg = (CBDMessage *)((CBObjectLinkEdge *)GetSubject())->GetMessage(i);
|