Replaced ref_ptr<>:take with ref_ptr<>:release, and added handling of removeal
of ref_ptr<> operator >.
This commit is contained in:
@@ -105,7 +105,7 @@ namespace
|
||||
*(image->data(j, i)+2) = static_cast<unsigned char>(blue * 255);
|
||||
}
|
||||
}
|
||||
return image.take();
|
||||
return image.release();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ namespace
|
||||
|
||||
tc->push_back(uv * scale);
|
||||
}
|
||||
return tc.take();
|
||||
return tc.release();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace
|
||||
*(image->data(i, 0)+2) = static_cast<unsigned char>(c*255);
|
||||
*(image->data(i, 0)+3) = 255;
|
||||
}
|
||||
return image.take();
|
||||
return image.release();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user