Parcourir la source

Convert tab to spaces, [ci skip]

aster2013 il y a 10 ans
Parent
commit
b7ee2575d7

+ 4 - 4
Source/Urho3D/AngelScript/Addons.cpp

@@ -2081,10 +2081,10 @@ bool CScriptDictValue::Get(asIScriptEngine *engine, void *value, int typeId) con
     {
         // A handle can be retrieved if the stored type is a handle of same or compatible type
         // or if the stored type is an object that implements the interface that the handle refer to.
-		
-		void* cast = 0x0;
-		if ((m_typeId & asTYPEID_MASK_OBJECT) &&
-			engine->RefCastObject(m_valueObj, engine->GetObjectTypeById(m_typeId), engine->GetObjectTypeById(typeId), &cast) >= 0)
+        
+        void* cast = 0x0;
+        if ((m_typeId & asTYPEID_MASK_OBJECT) &&
+            engine->RefCastObject(m_valueObj, engine->GetObjectTypeById(m_typeId), engine->GetObjectTypeById(typeId), &cast) >= 0)
         {
             engine->AddRefScriptObject(m_valueObj, engine->GetObjectTypeById(m_typeId));
             *(void**)value = m_valueObj;

+ 3 - 3
Source/Urho3D/Core/Object.cpp

@@ -33,9 +33,9 @@ namespace Urho3D
 {
 
 TypeInfo::TypeInfo(const char* typeName, const TypeInfo* baseTypeInfo) :
-	type_(typeName),
-	typeName_(typeName),
-	baseTypeInfo_(baseTypeInfo)
+    type_(typeName),
+    typeName_(typeName),
+    baseTypeInfo_(baseTypeInfo)
 {
 }
 

+ 8 - 8
Source/Urho3D/Core/Object.h

@@ -40,11 +40,11 @@ public:
     /// Destruct.
     ~TypeInfo();
 
-	/// Check current type is type of specified type.
+    /// Check current type is type of specified type.
     bool IsTypeOf(StringHash type) const;
-	/// Check current type is type of specified type.
+    /// Check current type is type of specified type.
     bool IsTypeOf(const TypeInfo* typeInfo) const;
-	/// Check current type is type of specified class type.
+    /// Check current type is type of specified class type.
     template<typename T> bool IsTypeOf() const { return IsTypeOf(T::GetTypeInfoStatic()); }
     
     /// Return type.
@@ -96,17 +96,17 @@ public:
 
     /// Return type info static.
     static const TypeInfo* GetTypeInfoStatic() { return 0; }
-	/// Check current type is type of specified type.
+    /// Check current type is type of specified type.
     static bool IsTypeOf(StringHash type);
-	/// Check current type is type of specified type.
+    /// Check current type is type of specified type.
     static bool IsTypeOf(const TypeInfo* typeInfo);
-	/// Check current type is type of specified class.
+    /// Check current type is type of specified class.
     template<typename T> static bool IsTypeOf() { return IsTypeOf(T::GetTypeInfoStatic()); }
     /// Check current instance is type of specified type.
     bool IsInstanceOf(StringHash type) const;
-	/// Check current instance is type of specified type.
+    /// Check current instance is type of specified type.
     bool IsInstanceOf(const TypeInfo* typeInfo) const;
-	/// Check current instance is type of specified class.
+    /// Check current instance is type of specified class.
     template<typename T> bool IsInstanceOf() const { return IsInstanceOf(T::GetTypeInfoStatic()); }
 
     /// Subscribe to an event that can be sent by any sender.

+ 10 - 10
Source/Urho3D/LuaScript/pkgs/ToDoxHook.lua

@@ -268,16 +268,16 @@ function isSameFunction(headerFunc, packageFunc, strict)
         --for _, decl in ipairs(headerFunc.declarations) do print("FuncHeader  Param: \""..decl.type.."\", \""..decl.ptr.."\", \""..decl.name.."\", \""..decl.def.."\"") end
         --for _, decl in ipairs(packageFunc.declarations) do print("FuncPackage Param: \""..decl.type.."\", \""..decl.ptr.."\", \""..decl.name.."\", \""..decl.def.."\"") end
         for i, headerDecl in ipairs(headerFunc.declarations) do
-		  if packageFunc.declarations[i] ~= nil then
-		    if not isTypeEquivalent(headerDecl.type, packageFunc.declarations[i].type) then
-		      return false
-		    end
-		  else
-		    if headerDecl.def == "" then
-		      return false
-		    end
-		  end
-		end
+      if packageFunc.declarations[i] ~= nil then
+        if not isTypeEquivalent(headerDecl.type, packageFunc.declarations[i].type) then
+          return false
+        end
+      else
+        if headerDecl.def == "" then
+          return false
+        end
+      end
+    end
         return true
       else
         return true

+ 1 - 1
Source/Urho3D/UI/UIElement.h

@@ -708,7 +708,7 @@ private:
 
 template <class T> T* UIElement::CreateChild(const String& name, unsigned index)
 {
-	return static_cast<T*>(CreateChild(T::GetTypeStatic(), name, index));
+    return static_cast<T*>(CreateChild(T::GetTypeStatic(), name, index));
 }
 
 }

+ 1 - 1
Source/Urho3D/Urho2D/PhysicsWorld2D.cpp

@@ -226,7 +226,7 @@ void PhysicsWorld2D::DrawTransform(const b2Transform& xf)
 
 void PhysicsWorld2D::Update(float timeStep)
 {
-	PROFILE(UpdatePhysics2D);
+    PROFILE(UpdatePhysics2D);
 
     using namespace PhysicsPreStep2D;
 

+ 9 - 9
Source/Urho3D/Urho2D/RigidBody2D.cpp

@@ -393,17 +393,17 @@ void RigidBody2D::ReleaseBody()
 
 void RigidBody2D::ApplyWorldTransform()
 {
-	if (!body_)
-		return;
+    if (!body_)
+        return;
 
-	if (!body_->IsActive())
-		return; 
-	
-	if (body_->GetType() == b2_staticBody)
-		return;
+    if (!body_->IsActive())
+        return; 
+    
+    if (body_->GetType() == b2_staticBody)
+        return;
 
-	if (!body_->IsAwake())
-		return;
+    if (!body_->IsAwake())
+        return;
 
     physicsWorld_->SetApplyingTransforms(true);