Fix minor problems with clang

This commit is contained in:
David Capello 2015-03-04 22:57:55 -03:00
parent 39f344fd11
commit 2c7fe41d6d
4 changed files with 10 additions and 3 deletions

View File

@ -58,7 +58,7 @@ void HttpLoader::threadHttpRequest()
base::replace_string(fn, "&", "-");
fn = base::join_path(dir, fn);
std::ofstream output(fn);
std::ofstream output(fn.c_str());
net::HttpRequest http(m_url);
net::HttpResponse response(&output);
http.send(response);

View File

@ -10,6 +10,8 @@
#include "doc/frame_tags.h"
#include <algorithm>
namespace doc {
FrameTags::FrameTags(Sprite* sprite)

View File

@ -13,6 +13,7 @@
#include "base/serialization.h"
#include <vector>
#include <iostream>
namespace doc {

View File

@ -1,5 +1,5 @@
// Aseprite Document Library
// Copyright (c) 2001-2014 David Capello
// Copyright (c) 2001-2015 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
@ -14,6 +14,8 @@
using namespace gfx;
namespace gfx {
inline std::ostream& operator<<(std::ostream& os, const Clip& area)
{
return os << "("
@ -25,6 +27,8 @@ inline std::ostream& operator<<(std::ostream& os, const Clip& area)
<< area.size.h << ")";
}
}
TEST(ScaledClip, WithoutClip)
{
Clip area;
@ -82,7 +86,7 @@ TEST(ScaledClip, Zoom)
// [ ]
// a[a a b] b c c c DST
// a a[a b b]b c c c SRC
//
//
// Y:
// -1 0 1 2 3
// [ ]