From 6317f3e0c1e2c6d2e88dd99443e7f45f7bb77f44 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 25 Feb 2012 19:35:14 +0300 Subject: Fix code style. --- src/guichan/include/guichan/sdl/sdlpixel.hpp | 3 ++- src/logger.cpp | 3 ++- src/net/manaserv/network.cpp | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/guichan/include/guichan/sdl/sdlpixel.hpp b/src/guichan/include/guichan/sdl/sdlpixel.hpp index bfd08341b..f56100b4a 100644 --- a/src/guichan/include/guichan/sdl/sdlpixel.hpp +++ b/src/guichan/include/guichan/sdl/sdlpixel.hpp @@ -124,7 +124,8 @@ namespace gcn SDL_LockSurface(surface); - Uint8 *p = static_cast(surface->pixels) + y * surface->pitch + x * bpp; + Uint8 *p = static_cast(surface->pixels) + + y * surface->pitch + x * bpp; Uint32 pixel = SDL_MapRGB(surface->format, color.r, color.g, color.b); diff --git a/src/logger.cpp b/src/logger.cpp index 3c439136b..9c9c6efef 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -234,7 +234,8 @@ void Logger::error(const std::string &error_text) // (ConstStr255Param) msg, nullptr, nullptr); #elif defined __linux__ || __linux std::cerr << "Error: " << error_text << std::endl; - std::string msg = "xmessage \"Error happend. Please see log file for more information.\""; + std::string msg = "xmessage \"Error happend. " + "Please see log file for more information.\""; if (system(msg.c_str()) == -1) std::cerr << "Error: " << error_text << std::endl; #else diff --git a/src/net/manaserv/network.cpp b/src/net/manaserv/network.cpp index a75da3643..05041c56a 100644 --- a/src/net/manaserv/network.cpp +++ b/src/net/manaserv/network.cpp @@ -76,8 +76,8 @@ void finalize() if (connections) { - logger->safeError("Tried to shutdown the network subsystem while there " - "are network connections left!"); + logger->safeError("Tried to shutdown the network subsystem " + "while there are network connections left!"); } clearNetworkHandlers(); -- cgit v1.2.3-60-g2f50