[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/libRTI RTI1516fedTime.cpp
From: |
CERTI CVS commits |
Subject: |
[certi-cvs] certi/libRTI RTI1516fedTime.cpp |
Date: |
Tue, 24 May 2011 05:54:56 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 11/05/24 05:54:56
Modified files:
libRTI : RTI1516fedTime.cpp
Log message:
Blilnd fix for invalid mix of time and time interval implementation
class.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libRTI/RTI1516fedTime.cpp?cvsroot=certi&r1=1.4&r2=1.5
Patches:
Index: RTI1516fedTime.cpp
===================================================================
RCS file: /sources/certi/certi/libRTI/RTI1516fedTime.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- RTI1516fedTime.cpp 16 Feb 2011 12:34:31 -0000 1.4
+++ RTI1516fedTime.cpp 24 May 2011 05:54:56 -0000 1.5
@@ -134,7 +134,7 @@
RTI1516fedTime::operator+=(rti1516::LogicalTimeInterval const & value)
throw (rti1516::IllegalTimeArithmetic, rti1516::InvalidLogicalTimeInterval)
{
- const RTI1516fedTime * other = dynamic_cast<const RTI1516fedTime
*>(&value);
+ const RTI1516fedTimeInterval * other = dynamic_cast<const
RTI1516fedTimeInterval *>(&value);
if (other == NULL)
{
#if defined(_WIN32)
@@ -144,7 +144,7 @@
#endif
} else
{
- _fedTime += other->_fedTime;
+ _fedTime += other->getInterval();
}
return *this;
@@ -155,7 +155,7 @@
RTI1516fedTime::operator-=(rti1516::LogicalTimeInterval const & value)
throw (rti1516::IllegalTimeArithmetic, rti1516::InvalidLogicalTimeInterval)
{
- const RTI1516fedTime * other = dynamic_cast<const RTI1516fedTime
*>(&value);
+ const RTI1516fedTimeInterval * other = dynamic_cast<const
RTI1516fedTimeInterval *>(&value);
if (other == NULL)
{
#if defined(_WIN32)
@@ -165,7 +165,7 @@
#endif
} else
{
- _fedTime -= other->_fedTime;
+ _fedTime -= other->getInterval();
}
return *this;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi/libRTI RTI1516fedTime.cpp,
CERTI CVS commits <=