Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
3ed09b89
Commit
3ed09b89
authored
Sep 23, 2008
by
Jesse Beder
Browse files
Fixed a problem where you lose the exception type on rethrow.
parent
1406b840
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/map.cpp
src/map.cpp
+4
-4
No files found.
src/map.cpp
View file @
3ed09b89
...
@@ -80,10 +80,10 @@ namespace YAML
...
@@ -80,10 +80,10 @@ namespace YAML
}
}
m_data
[
pKey
]
=
pValue
;
m_data
[
pKey
]
=
pValue
;
}
catch
(
Exception
&
e
)
{
}
catch
(
Exception
&
)
{
delete
pKey
;
delete
pKey
;
delete
pValue
;
delete
pValue
;
throw
e
;
throw
;
}
}
}
}
}
}
...
@@ -131,11 +131,11 @@ namespace YAML
...
@@ -131,11 +131,11 @@ namespace YAML
throw
ParserException
(
nextToken
.
line
,
nextToken
.
column
,
ErrorMsg
::
END_OF_MAP_FLOW
);
throw
ParserException
(
nextToken
.
line
,
nextToken
.
column
,
ErrorMsg
::
END_OF_MAP_FLOW
);
m_data
[
pKey
]
=
pValue
;
m_data
[
pKey
]
=
pValue
;
}
catch
(
Exception
&
e
)
{
}
catch
(
Exception
&
)
{
// clean up and rethrow
// clean up and rethrow
delete
pKey
;
delete
pKey
;
delete
pValue
;
delete
pValue
;
throw
e
;
throw
;
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment