diff options
author | Filippos Karapetis | 2019-05-27 02:26:04 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-05-27 14:53:37 +0300 |
commit | e412bf5ee44c7c1fb2be634e9db6aaa2322818e3 (patch) | |
tree | 2907b98807d0d906dfef5aac4fca3f7a78982fda /engines/adl/hires1.cpp | |
parent | 9bf2b5d03e8a15d86ccb6b7dd156b91ae99c2311 (diff) | |
download | scummvm-rg350-e412bf5ee44c7c1fb2be634e9db6aaa2322818e3.tar.gz scummvm-rg350-e412bf5ee44c7c1fb2be634e9db6aaa2322818e3.tar.bz2 scummvm-rg350-e412bf5ee44c7c1fb2be634e9db6aaa2322818e3.zip |
ADL: Fix MSVC warnings
- Change APPLECHAR to APPLEBYTE, when its output is used as a byte
- Replace uses of strncpy with Common::strlcpy
- Merge redundant switch and if statements
- Remove redundant semicolons
Diffstat (limited to 'engines/adl/hires1.cpp')
-rw-r--r-- | engines/adl/hires1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/adl/hires1.cpp b/engines/adl/hires1.cpp index 2cf2931896..39aec9367f 100644 --- a/engines/adl/hires1.cpp +++ b/engines/adl/hires1.cpp @@ -398,7 +398,7 @@ void HiRes1Engine::printString(const Common::String &str) { Common::String HiRes1Engine::loadMessage(uint idx) const { StreamPtr stream(_messages[idx]->createReadStream()); - return readString(*stream, APPLECHAR('\r')) + APPLECHAR('\r'); + return readString(*stream, APPLEBYTE('\r')) + APPLEBYTE('\r'); } void HiRes1Engine::printMessage(uint idx) { |