diff --git a/src/ipc/bridge.cc b/src/ipc/bridge.cc index fa1c6892d0..b23539671c 100644 --- a/src/ipc/bridge.cc +++ b/src/ipc/bridge.cc @@ -209,7 +209,9 @@ export * from '{{url}}' }; core->networkStatus.addObserver(this->networkStatusObserver, [this](auto json) { - if (json.has("name")) this->emit(json["name"].str(), json.str()); + if (json.has("name")) { + this->emit(json["name"].str(), json.str()); + } }); core->networkStatus.start(); diff --git a/src/platform/types.hh b/src/platform/types.hh index 27ab83d748..def72808bd 100644 --- a/src/platform/types.hh +++ b/src/platform/types.hh @@ -4,10 +4,12 @@ #include #include #include +#include #include #include #include #include +#include #include #include #include @@ -29,6 +31,8 @@ namespace SSC { using StringStream = std::stringstream; using WString = std::wstring; using WStringStream = std::wstringstream; + using InputFileStream = std::ifstream; + using OutputFileStream = std::ofstream; using Mutex = std::recursive_mutex; using Lock = std::lock_guard; using Map = std::map; @@ -46,6 +50,7 @@ namespace SSC { template using SharedPointer = std::shared_ptr; template using UniquePointer = std::unique_ptr; template using Promise = std::promise; + template using InputStreamBufferIterator = std::istreambuf_iterator; using ExitCallback = Function; using MessageCallback = Function;