diff options
author | Jonathan Wakely <redi@gcc.gnu.org> | 2003-11-08 00:36:13 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2003-11-08 00:36:13 +0000 |
commit | 3ab3dca624db4937a3dc4965f6820df9374bde8b (patch) | |
tree | 72ac5a52c52a5b85dc3cbc984876580330767ce0 /libstdc++-v3/libsupc++/vec.cc | |
parent | 4eedccc489d8193f6f9cedafa3a16663c8df76ad (diff) | |
download | gcc-3ab3dca624db4937a3dc4965f6820df9374bde8b.tar.gz |
vec.cc: Conform to C++STYLE.
2003-11-07 Jonathan Wakely <redi@gcc.gnu.org>
* libsupc++/vec.cc: Conform to C++STYLE.
From-SVN: r73350
Diffstat (limited to 'libstdc++-v3/libsupc++/vec.cc')
-rw-r--r-- | libstdc++-v3/libsupc++/vec.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/libstdc++-v3/libsupc++/vec.cc b/libstdc++-v3/libsupc++/vec.cc index 2725593ff53..908fe9978de 100644 --- a/libstdc++-v3/libsupc++/vec.cc +++ b/libstdc++-v3/libsupc++/vec.cc @@ -282,12 +282,10 @@ namespace __cxxabiv1 void (*destructor) (void *), void (*dealloc) (void *)) { - char *base; - if (!array_address) return; - base = static_cast<char *>(array_address); + char* base = static_cast<char *>(array_address); if (padding_size) { @@ -317,15 +315,12 @@ namespace __cxxabiv1 void (*destructor) (void *), void (*dealloc) (void *, std::size_t)) { - char *base; - std::size_t size; - if (!array_address) return; - base = static_cast <char *> (array_address); - size = 0; - + char* base = static_cast <char *> (array_address); + std::size_t size = 0; + if (padding_size) { std::size_t element_count = reinterpret_cast<std::size_t *> (base)[-1]; |