comparison Core/SQLite/StatementReference.cpp @ 657:5425bb6f1ea5

further cppcheck fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2013 11:46:23 +0100
parents 08eca5d86aad
children 2d0a347e8cfc
comparison
equal deleted inserted replaced
656:08eca5d86aad 657:5425bb6f1ea5
117 } 117 }
118 else 118 else
119 { 119 {
120 if (root_->refCount_ == 0) 120 if (root_->refCount_ == 0)
121 { 121 {
122 throw OrthancException(ErrorCode_InternalError); 122 // There remain references to this object. We cannot throw
123 // an exception because:
124 // http://www.parashift.com/c++-faq/dtors-shouldnt-throw.html
125
126 LOG(ERROR) << "Bad value of the reference counter";
123 } 127 }
124 else 128 else
125 { 129 {
126 root_->refCount_--; 130 root_->refCount_--;
127 } 131 }