Skip to content

Commit fe74871

Browse files
committed
merging Fix Windows compilation with c++20 | thiagoelg#81
1 parent f3201d7 commit fe74871

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/node_printer_win.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ namespace{
2727
* @param iSizeKbytes size in bytes of required allocating memory
2828
*/
2929
MemValue(const DWORD iSizeKbytes) {
30-
_value = (Type*)malloc(iSizeKbytes);
30+
this->_value = (Type*)malloc(iSizeKbytes);
3131
}
32-
32+
3333
~MemValue () {
3434
free();
3535
}
3636
protected:
3737
virtual void free() {
38-
if(_value != NULL)
38+
if(this->_value != NULL)
3939
{
40-
::free(_value);
41-
_value = NULL;
40+
::free(this->_value);
41+
this->_value = NULL;
4242
}
4343
}
4444
};
@@ -747,4 +747,4 @@ MY_NODE_MODULE_CALLBACK(PrintFile)
747747
{
748748
MY_NODE_MODULE_HANDLESCOPE;
749749
RETURN_EXCEPTION_STR("Not yet implemented on Windows");
750-
}
750+
}

0 commit comments

Comments
 (0)