Fix #549, plus more usual syntax for #548

This commit is contained in:
vsonnier 2017-05-27 07:46:28 +02:00
parent fcf9f0bb82
commit d170f731c5
2 changed files with 8 additions and 2 deletions

View File

@ -133,6 +133,7 @@ protected:
template<typename OutputDataType> template<typename OutputDataType>
class VisualDataDistributor : public VisualProcessor<OutputDataType, OutputDataType> { class VisualDataDistributor : public VisualProcessor<OutputDataType, OutputDataType> {
protected: protected:
virtual void process() { virtual void process() {
VisualProcessor<OutputDataType, OutputDataType>::OutputDataTypePtr inp; VisualProcessor<OutputDataType, OutputDataType>::OutputDataTypePtr inp;
@ -157,9 +158,14 @@ protected:
//A COPY to every outputs, without further processing. This is a 1-to-n dispatcher. //A COPY to every outputs, without further processing. This is a 1-to-n dispatcher.
template<typename OutputDataType> template<typename OutputDataType>
class VisualDataReDistributor : public VisualProcessor<OutputDataType, OutputDataType> { class VisualDataReDistributor : public VisualProcessor<OutputDataType, OutputDataType> {
protected: protected:
ReBuffer<OutputDataType> buffers{ std::string(typeid(*this).name()) }; VisualDataReDistributor() : buffers (std::string(typeid(*this).name())) {
}
ReBuffer<OutputDataType> buffers;
virtual void process() { virtual void process() {
VisualProcessor<OutputDataType, OutputDataType>::OutputDataTypePtr inp; VisualProcessor<OutputDataType, OutputDataType>::OutputDataTypePtr inp;

View File

@ -32,7 +32,7 @@ private:
struct timezone time_zone; struct timezone time_zone;
#else #else
LARGE_INTEGER win_frequency; LARGE_INTEGER win_frequency;
#endif; #endif
bool paused_state; bool paused_state;
bool lock_state; bool lock_state;