Commit e5e68b68 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

smallestpower may be const

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3932
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 99fbd01c
......@@ -90,7 +90,7 @@ namespace datrw {
} // std::ostream& operator<<(std::ostream& os, const MyOutputFormat& f)
}; // namespace helper
} // namespace helper
/*======================================================================*/
// constants to support coordinate scaling
......@@ -315,7 +315,7 @@ namespace datrw {
/*! \brief return smallest power possible without truncation
*/
int ScalCoo::smallestpower(const int& desired)
int ScalCoo::smallestpower(const int& desired) const
{
// limiting power values
int lp=desired >= -4 ? desired : -4;
......
......@@ -88,7 +88,7 @@ namespace datrw {
//! scale to given scaling factor as defined by decimal power
void scaletopower(const int& p);
//! smallest possible power larger or equal desired
int smallestpower(const int& desired=-2);
int smallestpower(const int& desired = -2) const;
//! return coordinate value
double value() const;
//! adjust scale to optimal representation of significant digits
......
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