Fix coding style in other code

This commit is contained in:
Perttu Ahola 2014-09-24 14:28:23 +03:00
parent dfd2865d3a
commit 8ed59316af
5 changed files with 7 additions and 6 deletions

View File

@ -53,7 +53,7 @@ struct CApp: public App, public u3d::Application
g_client_config.urho3d_path);
ss_ tmp_path = interface::getGlobalFilesystem()->get_absolute_path(
g_client_config.cache_path+"/tmp");
engineParameters_["ResourcePaths"] = u3d::String()+
engineParameters_["ResourcePaths"] = u3d::String() +
urho3d_path.c_str()+"/Bin/CoreData;"+
urho3d_path.c_str()+"/Bin/Data;"+
tmp_path.c_str();

View File

@ -41,7 +41,8 @@ bool Config::check_paths()
fail = true;
}
if(!check_file_readable(urho3d_path+"/Bin/CoreData/Shaders/GLSL/Basic.glsl")){
if(!check_file_readable(urho3d_path +
"/Bin/CoreData/Shaders/GLSL/Basic.glsl")){
log_e(MODULE, "Urho3D doesn't seem to exist in urho3d_path=\"%s\"",
cs(urho3d_path));
fail = true;

View File

@ -40,7 +40,7 @@ namespace interface
{
virtual ~Server(){}
virtual void shutdown(int exit_status=0) = 0;
virtual void shutdown(int exit_status = 0) = 0;
virtual bool load_module(const ss_ &module_name, const ss_ &path) = 0;
virtual void unload_module(const ss_ &module_name) = 0;

View File

@ -161,7 +161,7 @@ struct CState: public State, public interface::Server
m_shutdown_exit_status = exit_status;
}
bool is_shutdown_requested(int *exit_status=nullptr)
bool is_shutdown_requested(int *exit_status = nullptr)
{
if(m_shutdown_requested && exit_status)
*exit_status = m_shutdown_exit_status;

View File

@ -24,8 +24,8 @@ namespace server
struct State
{
virtual ~State(){}
virtual void shutdown(int exit_status=0) = 0;
virtual bool is_shutdown_requested(int *exit_status=nullptr) = 0;
virtual void shutdown(int exit_status = 0) = 0;
virtual bool is_shutdown_requested(int *exit_status = nullptr) = 0;
virtual bool load_module(const ss_ &module_name, const ss_ &path) = 0;
virtual void load_modules(const ss_ &path) = 0;
virtual interface::Module* get_module(const ss_ &module_name) = 0;