Replace boost::format with PBD::string_compose
This commit is contained in:
parent
9544855fdd
commit
a3d4888be3
@ -1,7 +1,7 @@
|
|||||||
#ifndef AUDIOGRAPHER_PROCESS_CONTEXT_H
|
#ifndef AUDIOGRAPHER_PROCESS_CONTEXT_H
|
||||||
#define AUDIOGRAPHER_PROCESS_CONTEXT_H
|
#define AUDIOGRAPHER_PROCESS_CONTEXT_H
|
||||||
|
|
||||||
#include <boost/format.hpp>
|
#include "pbd/compose.h"
|
||||||
|
|
||||||
#include "audiographer/visibility.h"
|
#include "audiographer/visibility.h"
|
||||||
#include "exception.h"
|
#include "exception.h"
|
||||||
@ -71,9 +71,7 @@ public:
|
|||||||
ProcessContext beginning (samplecnt_t samples)
|
ProcessContext beginning (samplecnt_t samples)
|
||||||
{
|
{
|
||||||
if (throw_level (ThrowProcess) && samples > _samples) {
|
if (throw_level (ThrowProcess) && samples > _samples) {
|
||||||
throw Exception (*this, boost::str (boost::format
|
throw Exception (*this, string_compose ("Trying to use too many samples of %1 for a new Context: %2 instead of %3" ,DebugUtils::demangled_name (*this), samples, _samples));
|
||||||
("Trying to use too many samples of %1% for a new Context: %2% instead of %3%")
|
|
||||||
% DebugUtils::demangled_name (*this) % samples % _samples));
|
|
||||||
}
|
}
|
||||||
validate_data ();
|
validate_data ();
|
||||||
|
|
||||||
@ -115,9 +113,7 @@ protected:
|
|||||||
inline void validate_data()
|
inline void validate_data()
|
||||||
{
|
{
|
||||||
if (throw_level (ThrowProcess) && (_samples % _channels != 0)) {
|
if (throw_level (ThrowProcess) && (_samples % _channels != 0)) {
|
||||||
throw Exception (*this, boost::str (boost::format
|
throw Exception (*this, string_compose ("Number of samples given to %1% was not a multiple of channels: %2 samples with %3 channels", DebugUtils::demangled_name (*this), _samples, _channels));
|
||||||
("Number of samples given to %1% was not a multiple of channels: %2% samples with %3% channels")
|
|
||||||
% DebugUtils::demangled_name (*this) % _samples % _channels));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user