aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_save_thumb_helper.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-01-26 18:06:42 +0100
committerEinar Johan Trøan Sømåen2013-01-26 18:07:07 +0100
commit980dc4a456f55a8b6526d2bc6f7694a0b2d666b3 (patch)
treebef13619df90984b731795e72721da7d39089041 /engines/wintermute/base/base_save_thumb_helper.cpp
parent6ae97cdfbe88fa34363aabc46847b0c9a32eefe5 (diff)
downloadscummvm-rg350-980dc4a456f55a8b6526d2bc6f7694a0b2d666b3.tar.gz
scummvm-rg350-980dc4a456f55a8b6526d2bc6f7694a0b2d666b3.tar.bz2
scummvm-rg350-980dc4a456f55a8b6526d2bc6f7694a0b2d666b3.zip
WINTERMUTE: Replace all NULLs with nullptr.
Diffstat (limited to 'engines/wintermute/base/base_save_thumb_helper.cpp')
-rw-r--r--engines/wintermute/base/base_save_thumb_helper.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/wintermute/base/base_save_thumb_helper.cpp b/engines/wintermute/base/base_save_thumb_helper.cpp
index 3899ece59b..76d703a697 100644
--- a/engines/wintermute/base/base_save_thumb_helper.cpp
+++ b/engines/wintermute/base/base_save_thumb_helper.cpp
@@ -36,20 +36,20 @@ namespace Wintermute {
//////////////////////////////////////////////////////////////////////////
BaseSaveThumbHelper::BaseSaveThumbHelper(BaseGame *inGame) : BaseClass(inGame) {
- _thumbnail = NULL;
- _scummVMThumb = NULL;
+ _thumbnail = nullptr;
+ _scummVMThumb = nullptr;
}
//////////////////////////////////////////////////////////////////////////
BaseSaveThumbHelper::~BaseSaveThumbHelper(void) {
delete _thumbnail;
- _thumbnail = NULL;
+ _thumbnail = nullptr;
delete _scummVMThumb;
- _scummVMThumb = NULL;
+ _scummVMThumb = nullptr;
}
BaseImage *BaseSaveThumbHelper::storeThumb(bool doFlip, int width, int height) {
- BaseImage *thumbnail = NULL;
+ BaseImage *thumbnail = nullptr;
if (_gameRef->_thumbnailWidth > 0 && _gameRef->_thumbnailHeight > 0) {
if (doFlip) {
// when using opengl on windows it seems to be necessary to do this twice
@@ -63,7 +63,7 @@ BaseImage *BaseSaveThumbHelper::storeThumb(bool doFlip, int width, int height) {
BaseImage *screenshot = _gameRef->_renderer->takeScreenshot();
if (!screenshot) {
- return NULL;
+ return nullptr;
}
// normal thumbnail
@@ -74,7 +74,7 @@ BaseImage *BaseSaveThumbHelper::storeThumb(bool doFlip, int width, int height) {
delete screenshot;
- screenshot = NULL;
+ screenshot = nullptr;
}
return thumbnail;
}
@@ -82,7 +82,7 @@ BaseImage *BaseSaveThumbHelper::storeThumb(bool doFlip, int width, int height) {
//////////////////////////////////////////////////////////////////////////
bool BaseSaveThumbHelper::storeThumbnail(bool doFlip) {
delete _thumbnail;
- _thumbnail = NULL;
+ _thumbnail = nullptr;
if (_gameRef->_thumbnailWidth > 0 && _gameRef->_thumbnailHeight > 0) {
@@ -98,7 +98,7 @@ bool BaseSaveThumbHelper::storeThumbnail(bool doFlip) {
//////////////////////////////////////////////////////////////////////////
bool BaseSaveThumbHelper::storeScummVMThumbNail(bool doFlip) {
delete _scummVMThumb;
- _scummVMThumb = NULL;
+ _scummVMThumb = nullptr;
_scummVMThumb = storeThumb(doFlip, kThumbnailWidth, kThumbnailHeight2);
if (!_scummVMThumb) {