summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/express.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-11-11 16:31:18 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-11-11 16:31:18 +0100
commitd1dc775f9b686170416fbca6a615fbea108d0ff1 (patch)
tree64c9053aa0ac1c0d9b15a5d628d5a2ca8e296db8 /src/emu/debug/express.cpp
parent7c7e62455e91e9eae51577cd06c4fd38858a3d50 (diff)
Some cleanups and init fixes with help of ReSharper C++ (nw)
Diffstat (limited to 'src/emu/debug/express.cpp')
-rw-r--r--src/emu/debug/express.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/express.cpp b/src/emu/debug/express.cpp
index a37a7796f5f..4dbe76202b7 100644
--- a/src/emu/debug/express.cpp
+++ b/src/emu/debug/express.cpp
@@ -1105,7 +1105,7 @@ void parsed_expression::parse_memory_operator(parse_token &token, const char *st
throw expression_error(expression_error::INVALID_TOKEN, token.offset());
// convert the space to flags
- expression_space memspace = EXPSPACE_INVALID;
+ expression_space memspace;
switch (space)
{
case 'p': memspace = physical ? EXPSPACE_PROGRAM_PHYSICAL : EXPSPACE_PROGRAM_LOGICAL; break;
@@ -1219,7 +1219,7 @@ void parsed_expression::infix_to_postfix()
// loop over all the original tokens
parse_token *prev = NULL;
- parse_token *next = NULL;
+ parse_token *next;
for (parse_token *token = m_tokenlist.detach_all(); token != NULL; prev = token, token = next)
{
// pre-determine our next token