Cleanup intellij odd relayout.
@@ -33,9 +33,9 @@ class MySearchHandler : public ISearchHandler {
std::string _name;
stringref _reply;
public:
- MySearchHandler(const std::string &name = "my",
- const stringref &reply = MYREPLY) :
- _name(name), _reply(reply) {}
+ MySearchHandler(const std::string &name = "my", const stringref &reply = MYREPLY)
+ : _name(name), _reply(reply)
+ {}
virtual DocsumReply::UP getDocsums(const DocsumRequest &request) override {
return (request.useRootSlime())
@@ -300,8 +300,8 @@ createSummary(search::RawBuf &buf) {
class BaseServer {
protected:
- BaseServer() :
- buf(100) {
+ BaseServer() : buf(100)
+ {
createSummary(buf);
}
@@ -312,7 +312,6 @@ protected:
class Server : public BaseServer {
public:
Server();
-
~Server();
private:
@@ -328,7 +327,8 @@ Server::Server()
engine(2),
handler(new MySearchHandler("slime", stringref(buf.GetDrainPos(), buf.GetUsedLen()))),
docsumBySlime(engine),
- docsumByRPC(docsumBySlime) {
+ docsumByRPC(docsumBySlime)
+{
DocTypeName dtnvfoo("foo");
engine.putSearchHandler(dtnvfoo, handler);
}
@@ -337,19 +337,16 @@ Server::~Server() {}
vespalib::string
getAnswer(size_t num) {
- vespalib::string s =
- "{"
- " docsums: [";
+ vespalib::string s;
+ s += "{ docsums: [";
for (size_t i(1); i < num * 2; i++) {
- s +=
- " {"
+ s += " {"
" docsum: {"
" long: 982"
" }"
" },";
}
- s +=
- " {"
+ s += " {"
" docsum: {"
" long: 982"
" }"
