--- a/src/DIF/FA/FAIListeners.cc
+++ b/src/DIF/FA/FAIListeners.cc
@@ -1,17 +1,4 @@
-//
// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with this program. If not, see http://www.gnu.org/licenses/.
-//
#include "FAI.h"
#include "FAIListeners.h"
@@ -46,7 +33,7 @@
cObject* obj) {
EV << "AllocateRequest initiated by " << src->getFullPath() << " and processed by " << fai->getFullPath() << endl;
Flow* fl = dynamic_cast<Flow*>(obj);
- if (*(fai->getFlow()) == *fl)
+ if ( fai->getFlow()->compare(*fl) )
fai->receiveAllocateRequest();
}
@@ -97,7 +84,7 @@
<< " and processed by " << fai->getFullPath() << endl;
Flow* flow = dynamic_cast<Flow*>(obj);
if (flow) {
- if (*(fai->getFlow()) == *flow)
+ if ( fai->getFlow()->compare(*flow) )
fai->receiveDeleteResponse();
}
else
@@ -117,7 +104,7 @@
// << "srcAddr = " << (fai->getFlow()->getSrcAddr() == fl->getSrcAddr()) << endl
// << "dstAddr = " << (fai->getFlow()->getDstAddr() == fl->getDstAddr()) << endl;
// EV << "Vysledek> " << (fai->getFlow() == fl) << endl;
- if (*(fai->getFlow()) == *fl)
+ if ( fai->getFlow()->compare(*fl) )
fai->receiveDeleteRequest();
}