Commit d1ded5c1 authored by Pavel Vainerman's avatar Pavel Vainerman

make style

parent 30c0a338
......@@ -180,7 +180,7 @@ namespace uniset
virtual void initNode( uniset::NodeInfo& ninfo, UniXML::iterator& it) noexcept;
void initRepSections();
std::pair<std::string,xmlNode*> getRepSectionName( const std::string& sec );
std::pair<std::string, xmlNode*> getRepSectionName( const std::string& sec );
void setConfFileName( const std::string& fn = "" );
void initParameters();
void setLocalNode( const std::string& nodename );
......
......@@ -68,7 +68,10 @@ namespace uniset
virtual bool activateObject() override;
virtual void initDBServer() {}
virtual std::string getMonitInfo( const std::string& params ){ return ""; }
virtual std::string getMonitInfo( const std::string& params )
{
return "";
}
std::shared_ptr<LogAgregator> loga;
......
......@@ -183,7 +183,7 @@ namespace uniset
// http API
virtual Poco::JSON::Object::Ptr request_get( const std::string& req, const Poco::URI::QueryParameters& p );
virtual Poco::JSON::Object::Ptr request_sensors( const std::string& req, const Poco::URI::QueryParameters& p );
void getSensorInfo( Poco::JSON::Array::Ptr& jdata, std::shared_ptr<USensorInfo>& s , bool shortInfo = false );
void getSensorInfo( Poco::JSON::Array::Ptr& jdata, std::shared_ptr<USensorInfo>& s, bool shortInfo = false );
#endif
// переопределяем для добавления вызова регистрации датчиков
......
......@@ -92,7 +92,7 @@ namespace uniset
#ifndef DISABLE_REST_API
// Поддержка REST API (IHttpRequestRegistry)
virtual Poco::JSON::Object::Ptr httpGetByName( const std::string& name , const Poco::URI::QueryParameters& p ) override;
virtual Poco::JSON::Object::Ptr httpGetByName( const std::string& name, const Poco::URI::QueryParameters& p ) override;
virtual Poco::JSON::Array::Ptr httpGetObjectsList( const Poco::URI::QueryParameters& p ) override;
virtual Poco::JSON::Object::Ptr httpHelpByName( const std::string& name, const Poco::URI::QueryParameters& p ) override;
virtual Poco::JSON::Object::Ptr httpRequestByName( const std::string& name, const std::string& req, const Poco::URI::QueryParameters& p ) override;
......
......@@ -87,7 +87,7 @@ int main(int argc, const char** argv)
// вычисляем среднее
int sum = 0;
for( auto && r : res )
for( auto&& r : res )
sum += r;
float avg = (float)sum / tnum;
......
......@@ -248,7 +248,7 @@ TEST_CASE("TextMessage", "[basic][message types][TextMessage]" )
SECTION("TextMessage from network")
{
std::string txt="Hello world";
std::string txt = "Hello world";
::uniset::Timespec tspec;
tspec.sec = 10;
......
......@@ -98,7 +98,7 @@ TEST_CASE("UniXML::iterator", "[unixml][iterator][basic]" )
CHECK( it.getName() == "UserData" );
UniXML::iterator it_bad = uxml.begin();
REQUIRE_FALSE( it_bad.findName("UnknownNode","NOTFOUND") );
REQUIRE_FALSE( it_bad.findName("UnknownNode", "NOTFOUND") );
REQUIRE_FALSE( !it_bad );
it = uxml.begin();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment