Skip to content

Commit a3fb94c

Browse files
committed
CXX-377 Fix clang warnings in headers
Cherry pick of server commit db59c175c736609970b52f91e30fc2277e22b25b
1 parent f66a242 commit a3fb94c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/mongo/client/dbclientcursor.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,6 @@ namespace mongo {
325325
}
326326

327327
DBClientCursor::~DBClientCursor() {
328-
if (!this)
329-
return;
330-
331328
DESTRUCTOR_GUARD (
332329

333330
if ( cursorId && _ownCursor && ! inShutdown() ) {

src/mongo/client/dbclientcursor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace mongo {
117117
'dead' may be preset yet some data still queued and locally
118118
available from the dbclientcursor.
119119
*/
120-
bool isDead() const { return !this || cursorId == 0; }
120+
bool isDead() const { return cursorId == 0; }
121121

122122
bool tailable() const { return (opts & QueryOption_CursorTailable) != 0; }
123123

0 commit comments

Comments
 (0)