get rid of warnings

This commit is contained in:
Alexandre Quessy
2014-03-05 23:13:13 -05:00
parent 0cf4a5086c
commit 8652e9555e
4 changed files with 32 additions and 5 deletions
+10
View File
@@ -19,6 +19,7 @@
*/
#include "Util.h"
#include "unused.h"
#include <algorithm>
namespace Util {
@@ -72,6 +73,9 @@ int map_int(int value, int istart, int istop, int ostart, int ostop)
Mesh* createMeshForTexture(Texture* texture, int frameWidth, int frameHeight)
{
UNUSED(frameHeight);
UNUSED(frameWidth);
return new Mesh(
QPointF(texture->getX(), texture->getY()),
QPointF(texture->getX() + texture->getWidth(), texture->getY()),
@@ -82,6 +86,9 @@ Mesh* createMeshForTexture(Texture* texture, int frameWidth, int frameHeight)
Triangle* createTriangleForTexture(Texture* texture, int frameWidth, int frameHeight)
{
UNUSED(frameHeight);
UNUSED(frameWidth);
return new Triangle(
QPointF(texture->getX(), texture->getY() + texture->getHeight()),
QPointF(texture->getX() + texture->getWidth(), texture->getY() + texture->getHeight()),
@@ -92,6 +99,9 @@ Triangle* createTriangleForTexture(Texture* texture, int frameWidth, int frameHe
Ellipse* createEllipseForTexture(Texture* texture, int frameWidth,
int frameHeight)
{
UNUSED(frameHeight);
UNUSED(frameWidth);
qreal halfWidth = texture->getWidth() / 2;
qreal halfHeight = texture->getHeight() / 2;