Style changes.

This commit is contained in:
Joris Vink 2015-04-07 13:11:31 +02:00
parent ec9ea6df36
commit 81c3325677
3 changed files with 8 additions and 9 deletions

View File

@ -26,8 +26,11 @@ extern "C" {
int int
page(struct http_request *req) page(struct http_request *req)
{ {
example_class example; example_class example;
const char* str = example.a(); const char *str = example.a();
http_response(req, 200, static_cast<void*>(const_cast<char*>(str)), strlen(str));
http_response(req, 200,
static_cast<void*>(const_cast<char*>(str)), strlen(str));
return (KORE_RESULT_OK); return (KORE_RESULT_OK);
} }

View File

@ -17,14 +17,12 @@
#include "example_class.h" #include "example_class.h"
example_class::example_class() { example_class::example_class() {
} }
example_class::~example_class() { example_class::~example_class() {
} }
const char* const char *
example_class::a() { example_class::a() {
return "Hello world!"; return "Hello world!";
} }

View File

@ -20,13 +20,11 @@
#include <stdio.h> #include <stdio.h>
class example_class { class example_class {
public: public:
example_class(); example_class();
~example_class(); ~example_class();
const char* const char *a();
a();
}; };
#endif /* defined(____example_class__) */ #endif /* defined(____example_class__) */