From a7e76438b229a5d752d140fff70b46bd9be2c152 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 12 Nov 2016 18:26:28 +0100 Subject: [PATCH] iop: use const on some variables Avoid coverity warning --- pcsx2/x86/iR3000A.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pcsx2/x86/iR3000A.cpp b/pcsx2/x86/iR3000A.cpp index 998c818d69..d6f2b8b1bf 100644 --- a/pcsx2/x86/iR3000A.cpp +++ b/pcsx2/x86/iR3000A.cpp @@ -511,12 +511,12 @@ static void psxRecompileIrxImport() const std::string libname = iopMemReadString(import_table + 12, 8); irxHLE hle = irxImportHLE(libname, index); - irxDEBUG debug = 0; - const char *funcname = 0; - #ifdef PCSX2_DEVBUILD - funcname = irxImportFuncname(libname, index); - debug = irxImportDebug(libname, index); + const irxDEBUG debug = irxImportDebug(libname, index); + const char* funcname = irxImportFuncname(libname, index); +#else + const irxDEBUG debug = 0; + const char *funcname = nullptr; #endif if (!hle && !debug && (!SysTraceActive(IOP.Bios) || !funcname))