Fix Mac build
This commit is contained in:
@@ -57,9 +57,9 @@ static NSImage* imageFromURL(CFURLRef url){
|
|||||||
return newImage;
|
return newImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
Cursor::Cursor(const char* path, float hotSpotX, float hotSpotY){
|
Cursor::Cursor(std::string path, float hotSpotX, float hotSpotY){
|
||||||
FSRef ref;
|
FSRef ref;
|
||||||
FSPathMakeRef((UInt8*)path, &ref, NULL);
|
FSPathMakeRef((UInt8*)path.c_str(), &ref, NULL);
|
||||||
CFURLRef imgPath = CFURLCreateFromFSRef(NULL, &ref);
|
CFURLRef imgPath = CFURLCreateFromFSRef(NULL, &ref);
|
||||||
|
|
||||||
NSImage *img = imageFromURL(imgPath);
|
NSImage *img = imageFromURL(imgPath);
|
||||||
|
@@ -39,7 +39,7 @@ class tarball {
|
|||||||
// This seems to be necessary to compile in Visual Studio
|
// This seems to be necessary to compile in Visual Studio
|
||||||
// Seemingly, stringstream is non-copyable.
|
// Seemingly, stringstream is non-copyable.
|
||||||
tarfile() {}
|
tarfile() {}
|
||||||
tarfile(tarfile& other) {
|
tarfile(const tarfile& other) {
|
||||||
contents.str("");
|
contents.str("");
|
||||||
contents << other.contents.str();
|
contents << other.contents.str();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user