diff options
-rw-r--r-- | libodbcpp/odbc-param.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libodbcpp/odbc-param.cpp b/libodbcpp/odbc-param.cpp index a14d244..cdaf97c 100644 --- a/libodbcpp/odbc-param.cpp +++ b/libodbcpp/odbc-param.cpp @@ -75,8 +75,8 @@ ODBC::StdStringParam::operator=(Glib::ustring const & d) const char * addr = data.data(); data = d; bindLen = d.bytes(); - paramBound &= (addr == data.data()); - if (!paramBound) { + // cppcheck-suppress invalidContainer + if (addr != data.data()) { paramBound = false; bind(); } @@ -89,8 +89,8 @@ ODBC::StdStringParam::operator=(std::string_view const & d) const char * addr = data.data(); data = d; bindLen = d.length(); - paramBound &= (addr == data.data()); - if (!paramBound) { + // cppcheck-suppress invalidContainer + if (addr != data.data()) { paramBound = false; bind(); } |