Browse Source

Change "const String&" to "const String" in pkg files.

aster2013 11 years ago
parent
commit
e473fe6660

+ 2 - 2
Source/Urho3D/LuaScript/pkgs/Engine/Console.pkg

@@ -6,7 +6,7 @@ class Console : public Object
     void SetVisible(bool enable);
     void SetVisible(bool enable);
     void Toggle();
     void Toggle();
     void SetAutoVisibleOnError(bool enable);
     void SetAutoVisibleOnError(bool enable);
-    void SetCommandInterpreter(const String& interpreter);
+    void SetCommandInterpreter(const String interpreter);
     void SetNumBufferedRows(unsigned rows);
     void SetNumBufferedRows(unsigned rows);
     void SetNumRows(unsigned rows);
     void SetNumRows(unsigned rows);
     void SetNumHistoryRows(unsigned rows);
     void SetNumHistoryRows(unsigned rows);
@@ -19,7 +19,7 @@ class Console : public Object
     Button* GetCloseButton() const;
     Button* GetCloseButton() const;
     bool IsVisible() const;
     bool IsVisible() const;
     bool IsAutoVisibleOnError() const;
     bool IsAutoVisibleOnError() const;
-    const String& GetCommandInterpreter() const;
+    const String GetCommandInterpreter() const;
     unsigned GetNumBufferedRows() const;
     unsigned GetNumBufferedRows() const;
     unsigned GetNumRows() const;
     unsigned GetNumRows() const;
     void CopySelectedRows() const;
     void CopySelectedRows() const;

+ 6 - 6
Source/Urho3D/LuaScript/pkgs/Graphics/Material.pkg

@@ -11,9 +11,9 @@ class Material : public Resource
     void SetNumTechniques(unsigned num);
     void SetNumTechniques(unsigned num);
     void SetTechnique(unsigned index, Technique* tech, unsigned qualityLevel = 0, float lodDistance = 0.0f);
     void SetTechnique(unsigned index, Technique* tech, unsigned qualityLevel = 0, float lodDistance = 0.0f);
     void SetShaderParameter(const String name, const Variant& value);
     void SetShaderParameter(const String name, const Variant& value);
-    void SetShaderParameterAnimation(const String& name, ValueAnimation* animation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f);
-    void SetShaderParameterAnimationWrapMode(const String& name, WrapMode wrapMode);
-    void SetShaderParameterAnimationSpeed(const String& name, float speed);
+    void SetShaderParameterAnimation(const String name, ValueAnimation* animation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f);
+    void SetShaderParameterAnimationWrapMode(const String name, WrapMode wrapMode);
+    void SetShaderParameterAnimationSpeed(const String name, float speed);
     void SetTexture(TextureUnit unit, Texture* texture);
     void SetTexture(TextureUnit unit, Texture* texture);
     void SetUVTransform(const Vector2& offset, float rotation, const Vector2& repeat);
     void SetUVTransform(const Vector2& offset, float rotation, const Vector2& repeat);
     void SetUVTransform(const Vector2& offset, float rotation, float repeat);
     void SetUVTransform(const Vector2& offset, float rotation, float repeat);
@@ -38,9 +38,9 @@ class Material : public Resource
     Pass* GetPass(unsigned index, const String passType) const;
     Pass* GetPass(unsigned index, const String passType) const;
     
     
     Texture* GetTexture(TextureUnit unit) const;
     Texture* GetTexture(TextureUnit unit) const;
-    ValueAnimation* GetShaderParameterAnimation(const String& name) const;
-    WrapMode GetShaderParameterAnimationWrapMode(const String& name) const;
-    float GetShaderParameterAnimationSpeed(const String& name) const;
+    ValueAnimation* GetShaderParameterAnimation(const String name) const;
+    WrapMode GetShaderParameterAnimationWrapMode(const String name) const;
+    float GetShaderParameterAnimationSpeed(const String name) const;
     
     
     CullMode GetCullMode() const;
     CullMode GetCullMode() const;
     CullMode GetShadowCullMode() const;
     CullMode GetShadowCullMode() const;

+ 2 - 2
Source/Urho3D/LuaScript/pkgs/Graphics/RenderPath.pkg

@@ -20,11 +20,11 @@ struct RenderPathCommand
     void SetShaderParameter(const String name, const Variant& value);
     void SetShaderParameter(const String name, const Variant& value);
     void RemoveShaderParameter(const String name);
     void RemoveShaderParameter(const String name);
     void SetNumOutputs(unsigned num);
     void SetNumOutputs(unsigned num);
-    void SetOutputName(unsigned index, const String& name);
+    void SetOutputName(unsigned index, const String name);
     void SetDepthStencilName(const String name);
     void SetDepthStencilName(const String name);
 
 
     const String GetTextureName(TextureUnit unit) const;
     const String GetTextureName(TextureUnit unit) const;
-    const Variant& GetShaderParameter(const String& name) const;
+    const Variant& GetShaderParameter(const String name) const;
     unsigned GetNumOutputs() const;
     unsigned GetNumOutputs() const;
     const String GetOutputName(unsigned index) const;
     const String GetOutputName(unsigned index) const;
     const String GetDepthStencilName() const;
     const String GetDepthStencilName() const;

+ 1 - 1
Source/Urho3D/LuaScript/pkgs/Resource/ResourceCache.pkg

@@ -4,7 +4,7 @@ class ResourceCache
 {    
 {    
     void ReleaseAllResources(bool force = false);
     void ReleaseAllResources(bool force = false);
     bool ReloadResource(Resource* resource);
     bool ReloadResource(Resource* resource);
-    void ReloadResourceWithDependencies(const String &fileName);
+    void ReloadResourceWithDependencies(const String fileName);
 
 
     void SetMemoryBudget(StringHash type, unsigned budget);
     void SetMemoryBudget(StringHash type, unsigned budget);
     void SetMemoryBudget(const String type, unsigned budget);
     void SetMemoryBudget(const String type, unsigned budget);

+ 6 - 6
Source/Urho3D/LuaScript/pkgs/Scene/Animatable.pkg

@@ -6,15 +6,15 @@ class Animatable : Serializable
 {
 {
     void SetAnimationEnabled(bool enable);
     void SetAnimationEnabled(bool enable);
     void SetObjectAnimation(ObjectAnimation* objectAnimation);
     void SetObjectAnimation(ObjectAnimation* objectAnimation);
-    void SetAttributeAnimation(const String& name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f);
-    void SetAttributeAnimationWrapMode(const String& name, WrapMode wrapMode);
-    void SetAttributeAnimationSpeed(const String& name, float speed);
+    void SetAttributeAnimation(const String name, ValueAnimation* attributeAnimation, WrapMode wrapMode = WM_LOOP, float speed = 1.0f);
+    void SetAttributeAnimationWrapMode(const String name, WrapMode wrapMode);
+    void SetAttributeAnimationSpeed(const String name, float speed);
 
 
     bool GetAnimationEnabled() const;
     bool GetAnimationEnabled() const;
     ObjectAnimation* GetObjectAnimation() const;
     ObjectAnimation* GetObjectAnimation() const;
-    ValueAnimation* GetAttributeAnimation(const String& name) const;
-    WrapMode GetAttributeAnimationWrapMode(const String& name) const;
-    float GetAttributeAnimationSpeed(const String& name) const;
+    ValueAnimation* GetAttributeAnimation(const String name) const;
+    WrapMode GetAttributeAnimationWrapMode(const String name) const;
+    float GetAttributeAnimationSpeed(const String name) const;
     
     
     tolua_property__get_set bool animationEnabled;
     tolua_property__get_set bool animationEnabled;
     tolua_property__get_set ObjectAnimation* objectAnimation;
     tolua_property__get_set ObjectAnimation* objectAnimation;

+ 6 - 6
Source/Urho3D/LuaScript/pkgs/Urho2D/TileMapDefs2D.pkg

@@ -42,16 +42,16 @@ enum TileMapObjectType2D
 
 
 class PropertySet2D
 class PropertySet2D
 {
 {
-    bool HasProperty(const String& name) const;
-    const String& GetProperty(const String& name) const;
+    bool HasProperty(const String name) const;
+    const String GetProperty(const String name) const;
 };
 };
 
 
 class Tile2D
 class Tile2D
 {
 {
     int GetGid() const;
     int GetGid() const;
     Sprite2D* GetSprite() const;
     Sprite2D* GetSprite() const;
-    bool HasProperty(const String& name) const;
-    const String& GetProperty(const String& name) const;
+    bool HasProperty(const String name) const;
+    const String GetProperty(const String name) const;
 
 
     tolua_readonly tolua_property__get_set int gid;
     tolua_readonly tolua_property__get_set int gid;
     tolua_readonly tolua_property__get_set Sprite2D* sprite;
     tolua_readonly tolua_property__get_set Sprite2D* sprite;
@@ -68,8 +68,8 @@ class TileMapObject2D
     const Vector2& GetPoint(unsigned index) const;
     const Vector2& GetPoint(unsigned index) const;
     int GetTileGid() const;
     int GetTileGid() const;
     Sprite2D* GetTileSprite() const;
     Sprite2D* GetTileSprite() const;
-    bool HasProperty(const String& name) const;
-    const String& GetProperty(const String& name) const;
+    bool HasProperty(const String name) const;
+    const String GetProperty(const String name) const;
 
 
     tolua_readonly tolua_property__get_set TileMapObjectType2D objectType;
     tolua_readonly tolua_property__get_set TileMapObjectType2D objectType;
     tolua_readonly tolua_property__get_set String name;
     tolua_readonly tolua_property__get_set String name;

+ 2 - 2
Source/Urho3D/LuaScript/pkgs/Urho2D/TileMapLayer2D.pkg

@@ -7,8 +7,8 @@ class TileMapLayer2D : Component
 
 
     int GetDrawOrder() const;
     int GetDrawOrder() const;
     bool IsVisible() const;
     bool IsVisible() const;
-    bool HasProperty(const String& name) const;
-    const String& GetProperty(const String& name) const;
+    bool HasProperty(const String name) const;
+    const String GetProperty(const String name) const;
     TileMapLayerType2D GetLayerType() const;
     TileMapLayerType2D GetLayerType() const;
 
 
     int GetWidth() const;
     int GetWidth() const;