Browse Source

Remove trailing whitespace (#13505)

Thresher 11 months ago
parent
commit
180ec92ef9
44 changed files with 81 additions and 81 deletions
  1. 1 1
      client/shaders/nodes_shader/opengl_fragment.glsl
  2. 1 1
      client/shaders/object_shader/opengl_fragment.glsl
  3. 1 1
      client/shaders/object_shader/opengl_vertex.glsl
  4. 1 1
      doc/world_format.txt
  5. 1 1
      games/devtest/mods/lighting/init.lua
  6. 7 7
      lib/jsoncpp/json/json-forwards.h
  7. 7 7
      lib/jsoncpp/json/json.h
  8. 7 7
      lib/jsoncpp/jsoncpp.cpp
  9. 2 2
      lib/lua/src/lapi.c
  10. 1 1
      lib/lua/src/ldblib.c
  11. 1 1
      lib/lua/src/ldebug.c
  12. 1 1
      lib/lua/src/ldo.c
  13. 2 2
      lib/lua/src/lgc.c
  14. 2 2
      lib/lua/src/llimits.h
  15. 2 2
      lib/lua/src/loadlib.c
  16. 1 1
      lib/lua/src/lobject.h
  17. 5 5
      lib/lua/src/lopcodes.h
  18. 1 1
      lib/lua/src/lstate.c
  19. 1 1
      lib/lua/src/lstrlib.c
  20. 7 7
      lib/lua/src/ltable.c
  21. 2 2
      lib/lua/src/lua.c
  22. 1 1
      lib/lua/src/lua.h
  23. 1 1
      lib/lua/src/lualib.h
  24. 1 1
      lib/lua/src/lvm.c
  25. 1 1
      mods/mods_here.txt
  26. 1 1
      src/client/hud.cpp
  27. 2 2
      src/client/mesh_generator_thread.cpp
  28. 1 1
      src/client/render/anaglyph.cpp
  29. 2 2
      src/client/render/anaglyph.h
  30. 2 2
      src/client/render/core.cpp
  31. 1 1
      src/client/render/core.h
  32. 1 1
      src/client/render/factory.cpp
  33. 1 1
      src/client/render/interlaced.cpp
  34. 1 1
      src/client/render/plain.h
  35. 2 2
      src/client/render/secondstage.h
  36. 1 1
      src/client/render/sidebyside.cpp
  37. 1 1
      src/client/shadows/dynamicshadows.cpp
  38. 1 1
      src/client/tile.cpp
  39. 1 1
      src/nodedef.h
  40. 1 1
      src/script/lua_api/l_object.h
  41. 1 1
      src/texture_override.cpp
  42. 1 1
      src/unittest/test_serialization.cpp
  43. 1 1
      src/util/numeric.h
  44. 1 1
      util/updatepo.sh

+ 1 - 1
client/shaders/nodes_shader/opengl_fragment.glsl

@@ -20,7 +20,7 @@ uniform float animationTimer;
 	uniform vec4 CameraPos;
 	uniform float xyPerspectiveBias0;
 	uniform float xyPerspectiveBias1;
-	
+
 	varying float adj_shadow_strength;
 	varying float cosLight;
 	varying float f_normal_length;

+ 1 - 1
client/shaders/object_shader/opengl_fragment.glsl

@@ -20,7 +20,7 @@ uniform float animationTimer;
 	uniform vec4 CameraPos;
 	uniform float xyPerspectiveBias0;
 	uniform float xyPerspectiveBias1;
-	
+
 	varying float adj_shadow_strength;
 	varying float cosLight;
 	varying float f_normal_length;

+ 1 - 1
client/shaders/object_shader/opengl_vertex.glsl

@@ -148,7 +148,7 @@ void main(void)
 			nNormal = normalize(vNormal);
 			cosLight = max(1e-5, dot(nNormal, -v_LightDirection));
 			float sinLight = pow(1 - pow(cosLight, 2.0), 0.5);
-			normalOffsetScale = 0.1 * pFactor * pFactor * sinLight * min(f_shadowfar, 500.0) / 
+			normalOffsetScale = 0.1 * pFactor * pFactor * sinLight * min(f_shadowfar, 500.0) /
 					xyPerspectiveBias1 / f_textureresolution;
 			z_bias = 1e3 * sinLight / cosLight * (0.5 + f_textureresolution / 1024.0);
 		}

+ 1 - 1
doc/world_format.txt

@@ -362,7 +362,7 @@ if map format version >= 29:
 
   u8 name_id_mapping_version
   - Should be zero for map format version 29.
-  
+
   u16 num_name_id_mappings
   foreach num_name_id_mappings
     u16 id

+ 1 - 1
games/devtest/mods/lighting/init.lua

@@ -119,7 +119,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
 		lighting[section.n] = state
 
 		for _,v in ipairs(parameters) do
-			
+
 			if fields[section.n.."."..v.n] then
 				local event = minetest.explode_scrollbar_event(fields[section.n.."."..v.n])
 				if event.type == "CHG" then

+ 7 - 7
lib/jsoncpp/json/json-forwards.h

@@ -7,28 +7,28 @@
 // //////////////////////////////////////////////////////////////////////
 
 /*
-The JsonCpp library's source code, including accompanying documentation, 
+The JsonCpp library's source code, including accompanying documentation,
 tests and demonstration applications, are licensed under the following
 conditions...
 
-Baptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all 
-jurisdictions which recognize such a disclaimer. In such jurisdictions, 
+Baptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all
+jurisdictions which recognize such a disclaimer. In such jurisdictions,
 this software is released into the Public Domain.
 
 In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
 2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur and
 The JsonCpp Authors, and is released under the terms of the MIT License (see below).
 
-In jurisdictions which recognize Public Domain property, the user of this 
-software may choose to accept it either as 1) Public Domain, 2) under the 
-conditions of the MIT License (see below), or 3) under the terms of dual 
+In jurisdictions which recognize Public Domain property, the user of this
+software may choose to accept it either as 1) Public Domain, 2) under the
+conditions of the MIT License (see below), or 3) under the terms of dual
 Public Domain/MIT License conditions described here, as they choose.
 
 The MIT License is about as close to Public Domain as a license can get, and is
 described in clear, concise terms at:
 
    http://en.wikipedia.org/wiki/MIT_License
-   
+
 The full text of the MIT License follows:
 
 ========================================================================

+ 7 - 7
lib/jsoncpp/json/json.h

@@ -6,28 +6,28 @@
 // //////////////////////////////////////////////////////////////////////
 
 /*
-The JsonCpp library's source code, including accompanying documentation, 
+The JsonCpp library's source code, including accompanying documentation,
 tests and demonstration applications, are licensed under the following
 conditions...
 
-Baptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all 
-jurisdictions which recognize such a disclaimer. In such jurisdictions, 
+Baptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all
+jurisdictions which recognize such a disclaimer. In such jurisdictions,
 this software is released into the Public Domain.
 
 In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
 2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur and
 The JsonCpp Authors, and is released under the terms of the MIT License (see below).
 
-In jurisdictions which recognize Public Domain property, the user of this 
-software may choose to accept it either as 1) Public Domain, 2) under the 
-conditions of the MIT License (see below), or 3) under the terms of dual 
+In jurisdictions which recognize Public Domain property, the user of this
+software may choose to accept it either as 1) Public Domain, 2) under the
+conditions of the MIT License (see below), or 3) under the terms of dual
 Public Domain/MIT License conditions described here, as they choose.
 
 The MIT License is about as close to Public Domain as a license can get, and is
 described in clear, concise terms at:
 
    http://en.wikipedia.org/wiki/MIT_License
-   
+
 The full text of the MIT License follows:
 
 ========================================================================

+ 7 - 7
lib/jsoncpp/jsoncpp.cpp

@@ -6,28 +6,28 @@
 // //////////////////////////////////////////////////////////////////////
 
 /*
-The JsonCpp library's source code, including accompanying documentation, 
+The JsonCpp library's source code, including accompanying documentation,
 tests and demonstration applications, are licensed under the following
 conditions...
 
-Baptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all 
-jurisdictions which recognize such a disclaimer. In such jurisdictions, 
+Baptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all
+jurisdictions which recognize such a disclaimer. In such jurisdictions,
 this software is released into the Public Domain.
 
 In jurisdictions which do not recognize Public Domain property (e.g. Germany as of
 2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur and
 The JsonCpp Authors, and is released under the terms of the MIT License (see below).
 
-In jurisdictions which recognize Public Domain property, the user of this 
-software may choose to accept it either as 1) Public Domain, 2) under the 
-conditions of the MIT License (see below), or 3) under the terms of dual 
+In jurisdictions which recognize Public Domain property, the user of this
+software may choose to accept it either as 1) Public Domain, 2) under the
+conditions of the MIT License (see below), or 3) under the terms of dual
 Public Domain/MIT License conditions described here, as they choose.
 
 The MIT License is about as close to Public Domain as a license can get, and is
 described in clear, concise terms at:
 
    http://en.wikipedia.org/wiki/MIT_License
-   
+
 The full text of the MIT License follows:
 
 ========================================================================

+ 2 - 2
lib/lua/src/lapi.c

@@ -223,7 +223,7 @@ LUA_API void lua_replace (lua_State *L, int idx) {
   api_checkvalidindex(L, o);
   if (idx == LUA_ENVIRONINDEX) {
     Closure *func = curr_func(L);
-    api_check(L, ttistable(L->top - 1)); 
+    api_check(L, ttistable(L->top - 1));
     func->c.env = hvalue(L->top - 1);
     luaC_barrier(L, func, L->top - 1);
   }
@@ -783,7 +783,7 @@ LUA_API int lua_setfenv (lua_State *L, int idx) {
 
 #define checkresults(L,na,nr) \
      api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na)))
-	
+
 
 LUA_API void lua_call (lua_State *L, int nargs, int nresults) {
   StkId func;

+ 1 - 1
lib/lua/src/ldblib.c

@@ -139,7 +139,7 @@ static int db_getinfo (lua_State *L) {
     treatstackoption(L, L1, "func");
   return 1;  /* return table */
 }
-    
+
 
 static int db_getlocal (lua_State *L) {
   int arg;

+ 1 - 1
lib/lua/src/ldebug.c

@@ -184,7 +184,7 @@ static void collectvalidlines (lua_State *L, Closure *f) {
     int i;
     for (i=0; i<f->l.p->sizelineinfo; i++)
       setbvalue(luaH_setnum(L, t, lineinfo[i]), 1);
-    sethvalue(L, L->top, t); 
+    sethvalue(L, L->top, t);
   }
   incr_top(L);
 }

+ 1 - 1
lib/lua/src/ldo.c

@@ -370,7 +370,7 @@ int luaD_poscall (lua_State *L, StkId firstResult) {
 ** The arguments are on the stack, right after the function.
 ** When returns, all the results are on the stack, starting at the original
 ** function position.
-*/ 
+*/
 void luaD_call (lua_State *L, StkId func, int nResults) {
   if (++L->nCcalls >= LUAI_MAXCCALLS) {
     if (L->nCcalls == LUAI_MAXCCALLS)

+ 2 - 2
lib/lua/src/lgc.c

@@ -315,7 +315,7 @@ static l_mem propagatemark (global_State *g) {
       traverseproto(g, p);
       return sizeof(Proto) + sizeof(Instruction) * p->sizecode +
                              sizeof(Proto *) * p->sizep +
-                             sizeof(TValue) * p->sizek + 
+                             sizeof(TValue) * p->sizek +
                              sizeof(int) * p->sizelineinfo +
                              sizeof(LocVar) * p->sizelocvars +
                              sizeof(TString *) * p->sizeupvalues;
@@ -701,7 +701,7 @@ void luaC_linkupval (lua_State *L, UpVal *uv) {
   GCObject *o = obj2gco(uv);
   o->gch.next = g->rootgc;  /* link upvalue into `rootgc' list */
   g->rootgc = o;
-  if (isgray(o)) { 
+  if (isgray(o)) {
     if (g->gcstate == GCSpropagate) {
       gray2black(o);  /* closed upvalues need barrier */
       luaC_barrier(L, uv, uv->v);

+ 2 - 2
lib/lua/src/llimits.h

@@ -107,7 +107,7 @@ typedef lu_int32 Instruction;
 
 
 #ifndef lua_lock
-#define lua_lock(L)     ((void) 0) 
+#define lua_lock(L)     ((void) 0)
 #define lua_unlock(L)   ((void) 0)
 #endif
 
@@ -118,7 +118,7 @@ typedef lu_int32 Instruction;
 
 /*
 ** macro to control inclusion of some hard tests on stack reallocation
-*/ 
+*/
 #ifndef HARDSTACKTESTS
 #define condhardstacktests(x)	((void)0)
 #else

+ 2 - 2
lib/lua/src/loadlib.c

@@ -502,7 +502,7 @@ static int ll_require (lua_State *L) {
 ** 'module' function
 ** =======================================================
 */
-  
+
 
 static void setfenv (lua_State *L) {
   lua_Debug ar;
@@ -632,7 +632,7 @@ LUALIB_API int luaopen_package (lua_State *L) {
   lua_setfield(L, -2, "__gc");
   /* create `package' table */
   luaL_register(L, LUA_LOADLIBNAME, pk_funcs);
-#if defined(LUA_COMPAT_LOADLIB) 
+#if defined(LUA_COMPAT_LOADLIB)
   lua_getfield(L, -1, "loadlib");
   lua_setfield(L, LUA_GLOBALSINDEX, "loadlib");
 #endif

+ 1 - 1
lib/lua/src/lobject.h

@@ -337,7 +337,7 @@ typedef struct Node {
 
 typedef struct Table {
   CommonHeader;
-  lu_byte flags;  /* 1<<p means tagmethod(p) is not present */ 
+  lu_byte flags;  /* 1<<p means tagmethod(p) is not present */
   lu_byte lsizenode;  /* log2 of size of `node' array */
   struct Table *metatable;
   TValue *array;  /* array part */

+ 5 - 5
lib/lua/src/lopcodes.h

@@ -186,8 +186,8 @@ OP_EQ,/*	A B C	if ((RK(B) == RK(C)) ~= A) then pc++		*/
 OP_LT,/*	A B C	if ((RK(B) <  RK(C)) ~= A) then pc++  		*/
 OP_LE,/*	A B C	if ((RK(B) <= RK(C)) ~= A) then pc++  		*/
 
-OP_TEST,/*	A C	if not (R(A) <=> C) then pc++			*/ 
-OP_TESTSET,/*	A B C	if (R(B) <=> C) then R(A) := R(B) else pc++	*/ 
+OP_TEST,/*	A C	if not (R(A) <=> C) then pc++			*/
+OP_TESTSET,/*	A B C	if (R(B) <=> C) then R(A) := R(B) else pc++	*/
 
 OP_CALL,/*	A B C	R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */
 OP_TAILCALL,/*	A B C	return R(A)(R(A+1), ... ,R(A+B-1))		*/
@@ -197,8 +197,8 @@ OP_FORLOOP,/*	A sBx	R(A)+=R(A+2);
 			if R(A) <?= R(A+1) then { pc+=sBx; R(A+3)=R(A) }*/
 OP_FORPREP,/*	A sBx	R(A)-=R(A+2); pc+=sBx				*/
 
-OP_TFORLOOP,/*	A C	R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); 
-                        if R(A+3) ~= nil then R(A+2)=R(A+3) else pc++	*/ 
+OP_TFORLOOP,/*	A C	R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2));
+                        if R(A+3) ~= nil then R(A+2)=R(A+3) else pc++	*/
 OP_SETLIST,/*	A B C	R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B	*/
 
 OP_CLOSE,/*	A 	close all variables in the stack up to (>=) R(A)*/
@@ -240,7 +240,7 @@ OP_VARARG/*	A B	R(A), R(A+1), ..., R(A+B-1) = vararg		*/
 ** bits 4-5: B arg mode
 ** bit 6: instruction set register A
 ** bit 7: operator is a test
-*/  
+*/
 
 enum OpArgMask {
   OpArgN,  /* argument is not used */

+ 1 - 1
lib/lua/src/lstate.c

@@ -36,7 +36,7 @@ typedef struct LG {
   lua_State l;
   global_State g;
 } LG;
-  
+
 
 
 static void stack_init (lua_State *L1, lua_State *L) {

+ 1 - 1
lib/lua/src/lstrlib.c

@@ -636,7 +636,7 @@ static void add_value (MatchState *ms, luaL_Buffer *b, const char *s,
     lua_pushlstring(L, s, e - s);  /* keep original text */
   }
   else if (!lua_isstring(L, -1))
-    luaL_error(L, "invalid replacement value (a %s)", luaL_typename(L, -1)); 
+    luaL_error(L, "invalid replacement value (a %s)", luaL_typename(L, -1));
   luaL_addvalue(b);  /* add result to accumulator */
 }
 

+ 7 - 7
lib/lua/src/ltable.c

@@ -48,7 +48,7 @@
 
 
 #define hashpow2(t,n)      (gnode(t, lmod((n), sizenode(t))))
-  
+
 #define hashstr(t,str)  hashpow2(t, (str)->tsv.hash)
 #define hashboolean(t,p)        hashpow2(t, p)
 
@@ -302,7 +302,7 @@ static void resize (lua_State *L, Table *t, int nasize, int nhsize) {
   if (nasize > oldasize)  /* array part must grow? */
     setarrayvector(L, t, nasize);
   /* create new hash part with appropriate size */
-  setnodevector(L, t, nhsize);  
+  setnodevector(L, t, nhsize);
   if (nasize < oldasize) {  /* array part must shrink? */
     t->sizearray = nasize;
     /* re-insert elements from vanishing slice */
@@ -390,11 +390,11 @@ static Node *getfreepos (Table *t) {
 
 
 /*
-** inserts a new key into a hash table; first, check whether key's main 
-** position is free. If not, check whether colliding node is in its main 
-** position or not: if it is not, move colliding node to an empty place and 
-** put new key in its main position; otherwise (colliding node is in its main 
-** position), new key goes to an empty position. 
+** inserts a new key into a hash table; first, check whether key's main
+** position is free. If not, check whether colliding node is in its main
+** position or not: if it is not, move colliding node to an empty place and
+** put new key in its main position; otherwise (colliding node is in its main
+** position), new key goes to an empty position.
 */
 static TValue *newkey (lua_State *L, Table *t, const TValue *key) {
   Node *mp = mainposition(t, key);

+ 2 - 2
lib/lua/src/lua.c

@@ -242,14 +242,14 @@ static int handle_script (lua_State *L, char **argv, int n) {
   int narg = getargs(L, argv, n);  /* collect arguments */
   lua_setglobal(L, "arg");
   fname = argv[n];
-  if (strcmp(fname, "-") == 0 && strcmp(argv[n-1], "--") != 0) 
+  if (strcmp(fname, "-") == 0 && strcmp(argv[n-1], "--") != 0)
     fname = NULL;  /* stdin */
   status = luaL_loadfile(L, fname);
   lua_insert(L, -(narg+1));
   if (status == 0)
     status = docall(L, narg, 0);
   else
-    lua_pop(L, narg);      
+    lua_pop(L, narg);
   return report(L, status);
 }
 

+ 1 - 1
lib/lua/src/lua.h

@@ -250,7 +250,7 @@ LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud);
 
 
 
-/* 
+/*
 ** ===============================================================
 ** some useful macros
 ** ===============================================================

+ 1 - 1
lib/lua/src/lualib.h

@@ -41,7 +41,7 @@ LUALIB_API int (luaopen_package) (lua_State *L);
 
 
 /* open all previous libraries */
-LUALIB_API void (luaL_openlibs) (lua_State *L); 
+LUALIB_API void (luaL_openlibs) (lua_State *L);
 
 
 

+ 1 - 1
lib/lua/src/lvm.c

@@ -125,7 +125,7 @@ void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) {
       callTMres(L, val, tm, t, key);
       return;
     }
-    t = tm;  /* else repeat with `tm' */ 
+    t = tm;  /* else repeat with `tm' */
   }
   luaG_runerror(L, "loop in gettable");
 }

+ 1 - 1
mods/mods_here.txt

@@ -7,4 +7,4 @@ To enable them, go to the configure world window in the main menu or write
 
   load_mod_<modname> = true
 
-in world.mt in the world directory. 
+in world.mt in the world directory.

+ 1 - 1
src/client/hud.cpp

@@ -411,7 +411,7 @@ void Hud::drawLuaElements(const v3s16 &camera_offset)
 			case HUD_ELEM_WAYPOINT: {
 				if (!calculateScreenPos(camera_offset, e, &pos))
 					break;
-				
+
 				pos += v2s32(e->offset.X, e->offset.Y);
 				video::SColor color(255, (e->number >> 16) & 0xFF,
 										 (e->number >> 8)  & 0xFF,

+ 2 - 2
src/client/mesh_generator_thread.cpp

@@ -229,7 +229,7 @@ void MeshUpdateWorkerThread::doUpdate()
 
 		MapBlockMesh *mesh_new = new MapBlockMesh(q->data, *m_camera_offset);
 
-		
+
 
 		MeshUpdateResult r;
 		r.p = q->p;
@@ -257,7 +257,7 @@ MeshUpdateManager::MeshUpdateManager(Client *client):
 	// Automatically use 33% of the system cores for mesh generation, max 4
 	if (number_of_threads == 0)
 		number_of_threads = MYMIN(4, Thread::getNumberOfProcessors() / 3);
-	
+
 	// use at least one thread
 	number_of_threads = MYMAX(1, number_of_threads);
 	infostream << "MeshUpdateManager: using " << number_of_threads << " threads" << std::endl;

+ 1 - 1
src/client/render/anaglyph.cpp

@@ -85,7 +85,7 @@ void populateAnaglyphPipeline(RenderPipeline *pipeline, Client *client)
 	// reset
 	pipeline->addStep<OffsetCameraStep>(0.0f);
 	pipeline->addStep<SetColorMaskStep>(video::ECP_ALL);
-	
+
 	pipeline->addStep<DrawWield>();
 	pipeline->addStep<MapPostFxStep>();
 	pipeline->addStep<DrawHUD>();

+ 2 - 2
src/client/render/anaglyph.h

@@ -37,7 +37,7 @@ private:
 
 /**
  * Resets depth buffer of the current render target
- * 
+ *
  */
 class ClearDepthBufferTarget : public RenderTarget
 {
@@ -53,7 +53,7 @@ private:
 
 /**
  * Enables or disables override material when activated
- * 
+ *
  */
 class ConfigureOverrideMaterialTarget : public RenderTarget
 {

+ 2 - 2
src/client/render/core.cpp

@@ -23,9 +23,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "client/shadows/dynamicshadowsrender.h"
 #include "settings.h"
 
-RenderingCore::RenderingCore(IrrlichtDevice *_device, Client *_client, Hud *_hud, 
+RenderingCore::RenderingCore(IrrlichtDevice *_device, Client *_client, Hud *_hud,
 		ShadowRenderer *_shadow_renderer, RenderPipeline *_pipeline, v2f _virtual_size_scale)
-	: device(_device), client(_client), hud(_hud), shadow_renderer(_shadow_renderer), 
+	: device(_device), client(_client), hud(_hud), shadow_renderer(_shadow_renderer),
 	pipeline(_pipeline), virtual_size_scale(_virtual_size_scale)
 {
 }

+ 1 - 1
src/client/render/core.h

@@ -43,7 +43,7 @@ protected:
 	v2u32 virtual_size { 0, 0 };
 
 public:
-	RenderingCore(IrrlichtDevice *device, Client *client, Hud *hud, 
+	RenderingCore(IrrlichtDevice *device, Client *client, Hud *hud,
 			ShadowRenderer *shadow_renderer, RenderPipeline *pipeline,
 			v2f virtual_size_scale);
 	RenderingCore(const RenderingCore &) = delete;

+ 1 - 1
src/client/render/factory.cpp

@@ -41,7 +41,7 @@ RenderingCore *createRenderingCore(const std::string &stereo_mode, IrrlichtDevic
 {
 	CreatePipelineResult created_pipeline;
 	createPipeline(stereo_mode, device, client, hud, created_pipeline);
-	return new RenderingCore(device, client, hud, 
+	return new RenderingCore(device, client, hud,
 			created_pipeline.shadow_renderer, created_pipeline.pipeline, created_pipeline.virtual_size_scale);
 }
 

+ 1 - 1
src/client/render/interlaced.cpp

@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "client/shader.h"
 #include "client/camera.h"
 
-InitInterlacedMaskStep::InitInterlacedMaskStep(TextureBuffer *_buffer, u8 _index)	: 
+InitInterlacedMaskStep::InitInterlacedMaskStep(TextureBuffer *_buffer, u8 _index)	:
 	buffer(_buffer), index(_index)
 {
 }

+ 1 - 1
src/client/render/plain.h

@@ -80,7 +80,7 @@ public:
 };
 
 /**
- * UpscaleStep step performs rescaling of the image 
+ * UpscaleStep step performs rescaling of the image
  * in the source texture 0 to the size of the target.
  */
 class UpscaleStep : public RenderStep

+ 2 - 2
src/client/render/secondstage.h

@@ -30,7 +30,7 @@ class PostProcessingStep : public RenderStep
 public:
 	/**
 	 * Construct a new PostProcessingStep object
-	 * 
+	 *
 	 * @param shader_id ID of the shader in IShaderSource
 	 * @param texture_map Map of textures to be chosen from the render source
 	 */
@@ -44,7 +44,7 @@ public:
 
 	/**
 	 * Configure bilinear filtering for a specific texture layer
-	 * 
+	 *
 	 * @param index Index of the texture layer
 	 * @param value true to enable the bilinear filter, false to disable
 	 */

+ 1 - 1
src/client/render/sidebyside.cpp

@@ -39,7 +39,7 @@ void DrawImageStep::run(PipelineContext &context)
 {
 	if (target)
 		target->activate(context);
-	
+
 	auto texture = source->getTexture(texture_index);
 	core::dimension2du output_size = context.device->getVideoDriver()->getScreenSize();
 	v2s32 pos(offset.X * output_size.Width, offset.Y * output_size.Height);

+ 1 - 1
src/client/shadows/dynamicshadows.cpp

@@ -99,7 +99,7 @@ void DirectionalLight::createSplitMatrices(const Camera *cam)
 	future_frustum.length = length;
 	future_frustum.radius = radius;
 	future_frustum.ViewMat.buildCameraLookAtMatrixLH(eye, center_scene, v3f(0.0f, 1.0f, 0.0f));
-	future_frustum.ProjOrthMat.buildProjectionMatrixOrthoLH(radius, radius, 
+	future_frustum.ProjOrthMat.buildProjectionMatrixOrthoLH(radius, radius,
 			0.0f, length, false);
 	future_frustum.camera_offset = cam->getOffset();
 }

+ 1 - 1
src/client/tile.cpp

@@ -1028,7 +1028,7 @@ video::IImage* TextureSource::generateImage(const std::string &name, std::set<st
 				<< std::endl;
 			return NULL;
 		}
-		
+
 		if (baseimg) {
 			core::dimension2d<u32> dim = tmp->getDimension();
 			blit_with_alpha(tmp, baseimg, v2s32(0, 0), v2s32(0, 0), dim);

+ 1 - 1
src/nodedef.h

@@ -299,7 +299,7 @@ struct TileDef
 
 struct ContentFeatures
 {
-	// PROTOCOL_VERSION >= 37. This is legacy and should not be increased anymore, 
+	// PROTOCOL_VERSION >= 37. This is legacy and should not be increased anymore,
 	// write checks that depend directly on the protocol version instead.
 	static const u8 CONTENTFEATURES_VERSION = 13;
 

+ 1 - 1
src/script/lua_api/l_object.h

@@ -378,7 +378,7 @@ private:
 
 	// set_lighting(self, lighting)
 	static int l_set_lighting(lua_State *L);
-	
+
 	// get_lighting(self)
 	static int l_get_lighting(lua_State *L);
 

+ 1 - 1
src/texture_override.cpp

@@ -102,7 +102,7 @@ TextureOverrideSource::TextureOverrideSource(std::string filepath)
 					<< " Syntax error in texture override \"" << line
 					<< "\": Unknown target \"" << target << "\""
 					<< std::endl;
-			
+
 		}
 
 		// If there are no valid targets, skip adding this override

+ 1 - 1
src/unittest/test_serialization.cpp

@@ -170,7 +170,7 @@ void TestSerialization::testDeSerializeLongString()
 void TestSerialization::testSerializeJsonString()
 {
 	std::istringstream is(std::ios::binary);
-	const auto reset_is = [&] (const std::string &s) { 
+	const auto reset_is = [&] (const std::string &s) {
 		is.clear();
 		is.str(s);
 	};

+ 1 - 1
src/util/numeric.h

@@ -174,7 +174,7 @@ struct MeshGrid {
 	{
 		return v3s16(getMeshPos(p.X), getMeshPos(p.Y), getMeshPos(p.Z));
 	}
-	
+
 	/// @brief Returns true if p is an origin of a cell in the grid.
 	bool isMeshPos(v3s16 &p) const
 	{

+ 1 - 1
util/updatepo.sh

@@ -70,7 +70,7 @@ xgettext --package-name=minetest \
 
 # Gettext collects a bunch of bogus comments for the "Available commands: " string
 # I couldn't figure out how to avoid that so get rid of them afterwards
-sed '/^#\. ~<number>.*relative_to/,/^#: /{ /^#: /!d; }' -i $potfile 
+sed '/^#\. ~<number>.*relative_to/,/^#: /{ /^#: /!d; }' -i $potfile
 
 # Now iterate on all languages and create the po file if missing, or update it
 # if it exists already