Ignore:
Timestamp:
08/01/13 11:42:22 (11 years ago)
Author:
Marek Kurdej
Message:

Fixed: C4996 unchecked iterator warning on MSVC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/include/Pacpus/kernel/ConnectionBase.h

    r102 r153  
    1 #ifndef ConnectionBase_H
    2 #define ConnectionBase_H
     1#ifndef CONNECTIONBASE_H
     2#define CONNECTIONBASE_H
    33
    44#include <Pacpus/kernel/pacpus.h>
     
    1111{
    1212public:
    13     ConnectionBase(AbstractInterface * interface, int priority):_interface(interface),_priority(priority) {}
    14     ~ConnectionBase() {}
     13    ConnectionBase(AbstractInterface * interface, int priority)
     14        : m_interface(interface)
     15        , m_priority(priority)
     16    {}
    1517
    16     AbstractInterface *  getInterface() const {return _interface;}
    17     int getPriority() const {return _priority;}
     18    ~ConnectionBase()
     19    {}
    1820
    19     bool operator== (ConnectionBase const &c) {
    20         return _interface == c.getInterface() && _priority == c.getPriority();}
     21    AbstractInterface *  getInterface() const
     22    {
     23        return m_interface;
     24    }
     25
     26    int getPriority() const
     27    {
     28        return m_priority;
     29    }
     30
     31    bool operator==(ConnectionBase const &c)
     32    {
     33        return getInterface() == c.getInterface()
     34            && getPriority() == c.getPriority()
     35            ;
     36    }
    2137
    2238private:
    23     AbstractInterface * _interface;
    24     int _priority;
     39    AbstractInterface * m_interface;
     40    int m_priority;
    2541};
    2642
    2743} // namespace pacpus
    2844
    29 #endif // ConnectionBase_H
     45#endif // CONNECTIONBASE_H
Note: See TracChangeset for help on using the changeset viewer.