Changeset 90:a072d3caf819 in rrlib_util


Ignore:
Timestamp:
09.08.2013 15:22:17 (6 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Added missing const qualifiers to cast operators

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fstream/fileno.h

    r80 r90  
    5656 */ 
    5757//---------------------------------------------------------------------- 
    58 #ifndef ___rrlib__util__fstream__fileno_h___ 
    59 #define ___rrlib__util__fstream__fileno_h___ 
     58#ifndef __rrlib__util__fstream__fileno_h__ 
     59#define __rrlib__util__fstream__fileno_h__ 
    6060 
    6161//---------------------------------------------------------------------- 
  • tTime.h

    r84 r90  
    379379  } 
    380380 
    381   operator rrlib::time::tTimestamp() 
     381  operator rrlib::time::tTimestamp() const 
    382382  { 
    383383    rrlib::time::tTimestamp timestamp = std::chrono::system_clock::from_time_t((time_t) this->tv_sec); 
     
    386386 
    387387  /*! Casts this tTime object into timespec object (consists of tv_sec/tv_nsec, see h)*/ 
    388   operator timespec() 
     388  operator timespec() const 
    389389  { 
    390390    timespec t = { tv_sec, 1000 * tv_usec }; 
Note: See TracChangeset for help on using the changeset viewer.