Fix using strings deprecated in c++11

This commit is contained in:
Alexander Skovpen
2018-07-12 21:36:37 +03:00
committed by dukelsky
parent 3c52692ffc
commit a61ee2e300
37 changed files with 1035 additions and 1035 deletions

View File

@@ -96,7 +96,7 @@ int _HudsArea<msgn_t, rec_t, attr_t, board_t, last_t, __HUDSON>::load_message(in
}
// Read header
msgn_t _hdridx = get_hdr_idx(__msg, __FILE__, __LINE__);
msgn_t _hdridx = get_hdr_idx(__msg, (char *)__FILE__, __LINE__);
wide->fhhdr.LseekSet((int32_t)_hdridx*(int32_t)sizeof(HudsHdr));
wide->fhhdr.Read(&__hdr, sizeof(HudsHdr));

View File

@@ -123,7 +123,7 @@ void _HudsArea<msgn_t, rec_t, attr_t, board_t, last_t, __HUDSON>::save_message(i
_hdridx = (msgn_t)(wide->fhhdr.FileLength()/sizeof(HudsHdr));
}
else {
_hdridx = get_hdr_idx(__msg, __FILE__, __LINE__);
_hdridx = get_hdr_idx(__msg, (char *)__FILE__, __LINE__);
}
__hdr.board = (board_t)board();
@@ -362,7 +362,7 @@ void _HudsArea<msgn_t, rec_t, attr_t, board_t, last_t, __HUDSON>::update_timesre
lock();
msgn_t hdridx = get_hdr_idx(msg, __FILE__, __LINE__);
msgn_t hdridx = get_hdr_idx(msg, (char *)__FILE__, __LINE__);
wide->fhhdr.LseekSet(hdridx*sizeof(HudsHdr));
HudsHdr hdr;