mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-25 11:24:54 +02:00
Use to_string instead of our custom implementation.
This commit is contained in:
@@ -32,7 +32,7 @@ bool Magick::SecurityPolicy::precision(const int precision_)
|
||||
string
|
||||
value;
|
||||
|
||||
value=toString(precision_);
|
||||
value=to_string(precision_);
|
||||
return(setValue(SystemPolicyDomain,"precision",value));
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ bool Magick::SecurityPolicy::maxMemoryRequest(const MagickSizeType limit_)
|
||||
string
|
||||
value;
|
||||
|
||||
value=toString(limit_);
|
||||
value=to_string(limit_);
|
||||
return(setValue(SystemPolicyDomain,"max-memory-request",value));
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ bool Magick::SecurityPolicy::maxProfileSize(const MagickSizeType limit_)
|
||||
string
|
||||
value;
|
||||
|
||||
value=toString(limit_);
|
||||
value=to_string(limit_);
|
||||
return(setValue(SystemPolicyDomain,"max-profile-size",value));
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ bool Magick::SecurityPolicy::shred(const int passes_)
|
||||
string
|
||||
value;
|
||||
|
||||
value=toString(passes_);
|
||||
value=to_string(passes_);
|
||||
return(setValue(SystemPolicyDomain,"shred",value));
|
||||
}
|
||||
|
||||
@@ -79,11 +79,3 @@ bool Magick::SecurityPolicy::setValue(const PolicyDomain domain_,
|
||||
ThrowPPException(false);
|
||||
return(status != MagickFalse);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::string Magick::SecurityPolicy::toString(const T& value)
|
||||
{
|
||||
stringstream ss;
|
||||
ss << value;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user