Skip to content

Commit

Permalink
c++: Very minor change in range() method
Browse files Browse the repository at this point in the history
Change the type of the cRange variable from 'comedi_range *' to 'const
comedi_range *'.  This holds the return value of the method which is
already of type 'const comedi_range *'.
  • Loading branch information
ian-abbott committed Nov 3, 2020
1 parent b98c241 commit 7a83e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c++/include/comedilib.hpp
Expand Up @@ -846,7 +846,7 @@ namespace comedi
}
const comedi_range* range(unsigned channel, unsigned range_index) const
{
comedi_range *cRange = comedi_get_range(comedi_handle(), index(), channel, range_index);
const comedi_range *cRange = comedi_get_range(comedi_handle(), index(), channel, range_index);
if(cRange == 0)
{
std::ostringstream message;
Expand Down

0 comments on commit 7a83e5f

Please sign in to comment.