aboutsummaryrefslogtreecommitdiffstats
path: root/src/sls.cpp
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2017-02-15 10:16:17 +0100
committerStefan Pöschel <github@basicmaster.de>2017-02-15 10:16:17 +0100
commit966d13519a38e1cd69cb19e62c69870529bcb523 (patch)
treef6e31e8224515177681c2b1c23d02f356246b80f /src/sls.cpp
parent0a7f18136ce99e5aecc0c8baf05dfbb1c8e4d7c9 (diff)
downloadODR-PadEnc-966d13519a38e1cd69cb19e62c69870529bcb523.tar.gz
ODR-PadEnc-966d13519a38e1cd69cb19e62c69870529bcb523.tar.bz2
ODR-PadEnc-966d13519a38e1cd69cb19e62c69870529bcb523.zip
Small refactorings
Diffstat (limited to 'src/sls.cpp')
-rw-r--r--src/sls.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sls.cpp b/src/sls.cpp
index a51b376..0ad3123 100644
--- a/src/sls.cpp
+++ b/src/sls.cpp
@@ -286,9 +286,9 @@ size_t SLSManager::resizeImage(MagickWand* m_wand, unsigned char** blob, const s
#endif
-int SLSManager::encodeFile(const std::string& fname, int fidx, bool raw_slides)
+bool SLSManager::encodeFile(const std::string& fname, int fidx, bool raw_slides)
{
- int ret = 0;
+ bool result = false;
int nseg, lastseglen, i, last, curseglen;
#if HAVE_MAGICKWAND
MagickWand *m_wand = NULL;
@@ -509,7 +509,7 @@ int SLSManager::encodeFile(const std::string& fname, int fidx, bool raw_slides)
pad_packetizer->AddDG(mscdg, false);
}
- ret = 1;
+ result = true;
}
encodefile_out:
@@ -522,7 +522,7 @@ encodefile_out:
if (blob) {
free(blob);
}
- return ret;
+ return result;
}