From 3e954eda485dc166b6cda3fb18c4a6d4463383ca Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 19 Jun 2018 13:52:04 +0100 Subject: [PATCH] Whitespace --- .../topology/juce_PhysicalTopologySource.cpp | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp index c65270d70e..520fb00ff3 100644 --- a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp +++ b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp @@ -323,12 +323,12 @@ struct PhysicalTopologySource::Internal std::min (sizeof (v.version), static_cast (v.length))); } - static juce::String getNameString (const BlocksProtocol::BlockName& n) - { - return juce::String (reinterpret_cast (n.name), - std::min (sizeof (n.name), static_cast (n.length))); - } - + static juce::String getNameString (const BlocksProtocol::BlockName& n) + { + return juce::String (reinterpret_cast (n.name), + std::min (sizeof (n.name), static_cast (n.length))); + } + static Block::Timestamp deviceTimestampToHost (uint32 timestamp) noexcept { return static_cast (timestamp); @@ -936,8 +936,8 @@ struct PhysicalTopologySource::Internal { auto currentBlock = currentTopology.blocks.getUnchecked (i); - auto newDeviceIter = std::find_if (newDeviceInfo.begin(), newDeviceInfo.end(), - [&] (DeviceInfo& info) { return info.uid == currentBlock->uid; }); + auto newDeviceIter = std::find_if (newDeviceInfo.begin(), newDeviceInfo.end(), + [&] (DeviceInfo& info) { return info.uid == currentBlock->uid; }); if (newDeviceIter == newDeviceInfo.end()) { @@ -952,7 +952,7 @@ struct PhysicalTopologySource::Internal } } - static const int maxBlocksToSave = 100; + static const int maxBlocksToSave = 100; if (disconnectedBlocks.size() > maxBlocksToSave) disconnectedBlocks.removeRange (0, 2 * (disconnectedBlocks.size() - maxBlocksToSave)); @@ -1219,22 +1219,22 @@ struct PhysicalTopologySource::Internal if (disconnectedBlocks.getUnchecked (i)->uid == uid) { auto block = disconnectedBlocks.removeAndReturn (i); - - if (auto blockImpl = BlockImplementation::getFrom (*block)) - { + + if (auto blockImpl = BlockImplementation::getFrom (*block)) + { blockImpl->revalidate (info.version, info.name, info.isMaster); currentTopology.blocks.add (block); - return true; + return true; } } - } + } return false; } void addNewBlock (DeviceInfo info) { - currentTopology.blocks.add (new BlockImplementation (info.serial, *this, info.version, + currentTopology.blocks.add (new BlockImplementation (info.serial, *this, info.version, info.name, info.isMaster)); }