File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -9,26 +9,20 @@ using namespace std;
99
1010void printLog (Countly::LogLevel level, const string& msg) {
1111 string lvl = " [DEBUG]" ;
12- switch (level)
13- {
12+ switch (level) {
1413 case Countly::LogLevel::DEBUG/* constant-expression */ :
15- /* code */
1614 lvl = " [Debug]" ;
1715 break ;
18- case Countly::LogLevel::INFO/* constant-expression */ :
19- /* code */
16+ case Countly::LogLevel::INFO:
2017 lvl = " [INFO]" ;
2118 break ;
22- case Countly::LogLevel::WARNING/* constant-expression */ :
23- /* code */
19+ case Countly::LogLevel::WARNING:
2420 lvl = " [WARNING]" ;
2521 break ;
26- case Countly::LogLevel::ERROR/* constant-expression */ :
27- /* code */
22+ case Countly::LogLevel::ERROR:
2823 lvl = " [ERROR]" ;
2924 break ;
30- case Countly::LogLevel::FATAL/* constant-expression */ :
31- /* code */
25+ case Countly::LogLevel::FATAL:
3226 lvl = " [FATAL]" ;
3327 break ;
3428
@@ -60,8 +54,7 @@ int main() {
6054 ct.setUpdateInterval (15 );
6155
6256 bool flag = true ;
63- while (flag)
64- {
57+ while (flag) {
6558 cout<<" Choose your option:" <<endl;
6659 cout<<" 1) Basic Event" <<endl;
6760 cout<<" 2) Event with count and sum" <<endl;
@@ -70,8 +63,7 @@ int main() {
7063 cout<<" 0) Exit" <<endl;
7164 int a;
7265 cin>>a;
73- switch (a)
74- {
66+ switch (a) {
7567 case 1 :
7668 ct.RecordEvent (" Basic Event" , 123 );
7769 break ;
You can’t perform that action at this time.
0 commit comments