[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/company.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 4 17:38:57 PDT 2004
Changes in directory llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ:
company.h updated: 1.2 -> 1.3
---
Log message:
Methods cannot be named the same thing classes are
---
Diffs of the changes: (+9 -6)
Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/company.h
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/company.h:1.2 llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/company.h:1.3
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/company.h:1.2 Mon Oct 4 19:37:32 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/company.h Mon Oct 4 19:38:46 2004
@@ -12,10 +12,13 @@
** RCS :
**
** $Source: /home/vadve/shared/PublicCVS/llvm-test/MultiSource/Benchmarks/Prolangs-C++/employ/company.h,v $
-** $Revision: 1.2 $
-** $Date: 2004/10/05 00:37:32 $
+** $Revision: 1.3 $
+** $Date: 2004/10/05 00:38:46 $
**
** $Log: company.h,v $
+** Revision 1.3 2004/10/05 00:38:46 lattner
+** Methods cannot be named the same thing classes are
+**
** Revision 1.2 2004/10/05 00:37:32 lattner
** Stop using deprecated headers
**
@@ -46,7 +49,7 @@
public:
EmployeeNode(Employee *, EmployeeNode *);
- Employee * Employee() { return employee; }
+ Employee * getEmployee() { return employee; }
EmployeeNode * Next();
};
/*****************************************************************************/
@@ -108,7 +111,7 @@
EmployeeNode * curE;
for(curE = employeeList; curE != NULL; curE = curE->Next())
- curE->Employee()->PrintWithEarnings(currentWeek);
+ curE->getEmployee()->PrintWithEarnings(currentWeek);
}
/*****************************************************************************/
void
@@ -119,7 +122,7 @@
currentWeek++;
for(curE = employeeList; curE != NULL; curE = curE->Next())
- curE->Employee()->NewWeek();
+ curE->getEmployee()->NewWeek();
}
/*****************************************************************************/
void
@@ -128,7 +131,7 @@
EmployeeNode * curE;
for(curE = employeeList; curE != NULL; curE = curE->Next())
- curE->Employee()->Raise(units);
+ curE->getEmployee()->Raise(units);
}
#endif
More information about the llvm-commits
mailing list