Commit fff7e4bc authored by Pavel Vainerman's avatar Pavel Vainerman

..мелкие правки..

parent 4b86c607
...@@ -33,7 +33,7 @@ RTUStorage::~RTUStorage() ...@@ -33,7 +33,7 @@ RTUStorage::~RTUStorage()
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void RTUStorage::poll( const std::shared_ptr<ModbusRTUMaster> mb ) throw( ModbusRTU::mbException ) void RTUStorage::poll( const std::shared_ptr<ModbusRTUMaster>& mb ) throw( ModbusRTU::mbException )
{ {
try try
{ {
......
...@@ -16,7 +16,7 @@ class RTUStorage ...@@ -16,7 +16,7 @@ class RTUStorage
RTUStorage( ModbusRTU::ModbusAddr addr ); RTUStorage( ModbusRTU::ModbusAddr addr );
~RTUStorage(); ~RTUStorage();
void poll( const std::shared_ptr<ModbusRTUMaster> mb ) void poll( const std::shared_ptr<ModbusRTUMaster>& mb )
throw(ModbusRTU::mbException); throw(ModbusRTU::mbException);
inline ModbusRTU::ModbusAddr getAddress(){ return addr; } inline ModbusRTU::ModbusAddr getAddress(){ return addr; }
......
...@@ -376,7 +376,7 @@ const DataBits& DataBits::operator=( const ModbusByte& r ) ...@@ -376,7 +376,7 @@ const DataBits& DataBits::operator=( const ModbusByte& r )
std::ostream& ModbusRTU::operator<<(std::ostream& os, DataBits& d ) std::ostream& ModbusRTU::operator<<(std::ostream& os, DataBits& d )
{ {
os << "["; os << "[";
for( unsigned int i=d.b.size()-1; i>=0; i-- ) for( unsigned int i=d.b.size()-1; i!=0; i-- )
os << d.b[i]; os << d.b[i];
os << "]"; os << "]";
...@@ -432,7 +432,7 @@ const DataBits16& DataBits16::operator=( const ModbusData& r ) ...@@ -432,7 +432,7 @@ const DataBits16& DataBits16::operator=( const ModbusData& r )
std::ostream& ModbusRTU::operator<<(std::ostream& os, DataBits16& d ) std::ostream& ModbusRTU::operator<<(std::ostream& os, DataBits16& d )
{ {
os << "["; os << "[";
for( unsigned int i=d.b.size()-1; i>=0; i-- ) for( unsigned int i=d.b.size()-1; i!=0; i-- )
os << d.b[i]; os << d.b[i];
os << "]"; os << "]";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment