From 0c56ac848dd0eba359500d444ecbb51f215ff5b9 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 4 Dec 2015 07:02:45 +0100 Subject: clang-modernize part 3 --- src/devices/cpu/drcbec.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/devices/cpu/drcbec.cpp') diff --git a/src/devices/cpu/drcbec.cpp b/src/devices/cpu/drcbec.cpp index d3e1538c1ba..5b494c947f3 100644 --- a/src/devices/cpu/drcbec.cpp +++ b/src/devices/cpu/drcbec.cpp @@ -313,7 +313,7 @@ void drcbe_c::reset() { // reset our hash tables m_hash.reset(); - m_hash.set_default_codeptr(NULL); + m_hash.set_default_codeptr(nullptr); } @@ -330,7 +330,7 @@ void drcbe_c::generate(drcuml_block &block, const instruction *instlist, UINT32 // begin codegen; fail if we can't drccodeptr *cachetop = m_cache.begin_codegen(numinst * sizeof(drcbec_instruction) * 4); - if (cachetop == NULL) + if (cachetop == nullptr) block.abort(); // compute the base by aligning the cache top to an even multiple of drcbec_instruction @@ -528,7 +528,7 @@ int drcbe_c::execute(code_handle &entry) case MAKE_OPCODE_SHORT(OP_HASHJMP, 4, 0): // HASHJMP mode,pc,handle sp = 0; newinst = (const drcbec_instruction *)m_hash.get_codeptr(PARAM0, PARAM1); - if (newinst == NULL) + if (newinst == nullptr) { assert(sp < ARRAY_LENGTH(callstack)); m_state.exp = PARAM1; -- cgit v1.2.3-70-g09d2