Skip to content

Commit

Permalink
Improved const correctness of local variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Jun 29, 2018
1 parent 29623d1 commit d14869f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnuplot_i.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ void stringtok (Container &container,
}

// find the end of the token
std::string::size_type j = in.find_first_of (delimiters, i);
const std::string::size_type j = in.find_first_of (delimiters, i);

// push token
if (j == std::string::npos)
Expand Down Expand Up @@ -1760,7 +1760,7 @@ bool Gnuplot::get_program_path(void)
//
// second look in PATH for Gnuplot
// Retrieves a C string containing the value of environment variable PATH
char * const path = getenv("PATH");;
const char * const path = getenv("PATH");;

if (path == NULL)
{
Expand Down

0 comments on commit d14869f

Please sign in to comment.