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
page(struct http_request *req)
{
example_class example;
const char* str = example.a();
http_response(req, 200, static_cast<void*>(const_cast<char*>(str)), strlen(str));
example_class example;
const char *str = example.a();
http_response(req, 200,
static_cast<void*>(const_cast<char*>(str)), strlen(str));
return (KORE_RESULT_OK);
}

View File

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

View File

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