Fix Mac build

This commit is contained in:
2014-12-29 15:13:52 -05:00
parent b11199d7d9
commit c0642fe993
2 changed files with 3 additions and 3 deletions

View File

@@ -57,9 +57,9 @@ static NSImage* imageFromURL(CFURLRef url){
return newImage;
}
Cursor::Cursor(const char* path, float hotSpotX, float hotSpotY){
Cursor::Cursor(std::string path, float hotSpotX, float hotSpotY){
FSRef ref;
FSPathMakeRef((UInt8*)path, &ref, NULL);
FSPathMakeRef((UInt8*)path.c_str(), &ref, NULL);
CFURLRef imgPath = CFURLCreateFromFSRef(NULL, &ref);
NSImage *img = imageFromURL(imgPath);

View File

@@ -39,7 +39,7 @@ class tarball {
// This seems to be necessary to compile in Visual Studio
// Seemingly, stringstream is non-copyable.
tarfile() {}
tarfile(tarfile& other) {
tarfile(const tarfile& other) {
contents.str("");
contents << other.contents.str();
}