Skip to content
Snippets Groups Projects
Commit 06fb2562 authored by Matthew Andrew's avatar Matthew Andrew
Browse files

Re #21709 Applied clang format

parent 6424c083
No related merge requests found
...@@ -140,7 +140,7 @@ private: ...@@ -140,7 +140,7 @@ private:
Poco::ActiveMethod<int, std::string, UsageServiceImpl> m_startupActiveMethod; Poco::ActiveMethod<int, std::string, UsageServiceImpl> m_startupActiveMethod;
/// Async method for sending feature notifications /// Async method for sending feature notifications
Poco::ActiveMethod<int, std::string, UsageServiceImpl> m_featureActiveMethod; Poco::ActiveMethod<int, std::string, UsageServiceImpl> m_featureActiveMethod;
/// Stores the base url of the usage system /// Stores the base url of the usage system
std::string m_url; std::string m_url;
}; };
......
...@@ -32,12 +32,12 @@ ErrorReporter::ErrorReporter(std::string application, ...@@ -32,12 +32,12 @@ ErrorReporter::ErrorReporter(std::string application,
m_errorActiveMethod(this, &ErrorReporter::sendErrorAsyncImpl), m_errorActiveMethod(this, &ErrorReporter::sendErrorAsyncImpl),
m_exitCode(exitCode), m_upTime(upTime), m_share(share), m_name(""), m_exitCode(exitCode), m_upTime(upTime), m_share(share), m_name(""),
m_email("") { m_email("") {
int retval = Mantid::Kernel::ConfigService::Instance().getValue( int retval = Mantid::Kernel::ConfigService::Instance().getValue(
"error_root_url", m_url); "error_root_url", m_url);
if(retval == 0) { if (retval == 0) {
g_log.error() << "Failed to load error report url\n"; g_log.error() << "Failed to load error report url\n";
} }
} }
/** Constructor /** Constructor
*/ */
...@@ -49,12 +49,12 @@ ErrorReporter::ErrorReporter(std::string application, ...@@ -49,12 +49,12 @@ ErrorReporter::ErrorReporter(std::string application,
m_errorActiveMethod(this, &ErrorReporter::sendErrorAsyncImpl), m_errorActiveMethod(this, &ErrorReporter::sendErrorAsyncImpl),
m_exitCode(exitCode), m_upTime(upTime), m_share(share), m_name(name), m_exitCode(exitCode), m_upTime(upTime), m_share(share), m_name(name),
m_email(email) { m_email(email) {
int retval = Mantid::Kernel::ConfigService::Instance().getValue( int retval = Mantid::Kernel::ConfigService::Instance().getValue(
"error_root_url", m_url); "error_root_url", m_url);
if(retval == 0) { if (retval == 0) {
g_log.error() << "Failed to load error report url\n"; g_log.error() << "Failed to load error report url\n";
} }
} }
/** Generates an error message and then calls an internet helper to send it /** Generates an error message and then calls an internet helper to send it
*/ */
......
...@@ -76,12 +76,11 @@ UsageServiceImpl::UsageServiceImpl() ...@@ -76,12 +76,11 @@ UsageServiceImpl::UsageServiceImpl()
setInterval(60); setInterval(60);
int retval = Mantid::Kernel::ConfigService::Instance().getValue( int retval = Mantid::Kernel::ConfigService::Instance().getValue(
"usage_root_url", m_url); "usage_root_url", m_url);
if(retval == 0) { if (retval == 0) {
g_log.error() << "Failed to load usage report url\n"; g_log.error() << "Failed to load usage report url\n";
} else { } else {
g_log.information() << "Root usage reporting url is " << m_url << "\n"; g_log.information() << "Root usage reporting url is " << m_url << "\n";
} }
} }
void UsageServiceImpl::setApplication(const std::string &name) { void UsageServiceImpl::setApplication(const std::string &name) {
...@@ -140,7 +139,7 @@ void UsageServiceImpl::flush() { ...@@ -140,7 +139,7 @@ void UsageServiceImpl::flush() {
} }
} }
/** getUpTime returns the time for which the mantid instance has been running /** getUpTime returns the time for which the mantid instance has been running
@return time_duration The time for which mantid has been running. @return time_duration The time for which mantid has been running.
*/ */
Types::Core::time_duration UsageServiceImpl::getUpTime() { Types::Core::time_duration UsageServiceImpl::getUpTime() {
...@@ -295,13 +294,13 @@ std::string UsageServiceImpl::generateFeatureUsageMessage() { ...@@ -295,13 +294,13 @@ std::string UsageServiceImpl::generateFeatureUsageMessage() {
/**Async method for sending startup messages /**Async method for sending startup messages
*/ */
int UsageServiceImpl::sendStartupAsyncImpl(const std::string &message) { int UsageServiceImpl::sendStartupAsyncImpl(const std::string &message) {
return this->sendReport(message, m_url+"/api/usage"); return this->sendReport(message, m_url + "/api/usage");
} }
/**Async method for sending feature messages /**Async method for sending feature messages
*/ */
int UsageServiceImpl::sendFeatureAsyncImpl(const std::string &message) { int UsageServiceImpl::sendFeatureAsyncImpl(const std::string &message) {
return this->sendReport(message, m_url+"/api/feature"); return this->sendReport(message, m_url + "/api/feature");
} }
int UsageServiceImpl::sendReport(const std::string &message, int UsageServiceImpl::sendReport(const std::string &message,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment