diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-07-10 01:24:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-07-10 01:24:48 +0200 |
| commit | 13154bc1a9b341f46994607fdde2e725444a6e21 (patch) | |
| tree | 3fcf211b397092798b2aa39af4cc567d146a574c /src/types.cc | |
| parent | 9853cbf566fdfdea096333c4caa788c29fa5c57b (diff) | |
Remove String namespace from around compose().compose
Diffstat (limited to 'src/types.cc')
| -rw-r--r-- | src/types.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types.cc b/src/types.cc index 40ceb18c..3e50af38 100644 --- a/src/types.cc +++ b/src/types.cc @@ -91,7 +91,7 @@ Fraction::Fraction (string s) string Fraction::as_string () const { - return String::compose ("%1 %2", numerator, denominator); + return compose("%1 %2", numerator, denominator); } @@ -505,7 +505,7 @@ void Luminance::set_value (float v) { if (v < 0) { - throw dcp::MiscError (String::compose("Invalid luminance value %1", v)); + throw dcp::MiscError (compose("Invalid luminance value %1", v)); } _value = v; @@ -546,7 +546,7 @@ Luminance::string_to_unit (string u) return Unit::FOOT_LAMBERT; } - throw XMLError (String::compose("Invalid luminance unit %1", u)); + throw XMLError (compose("Invalid luminance unit %1", u)); } |
