Skip to content

Commit

Permalink
Fix: Clang detach temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
sithlord48 committed May 25, 2021
1 parent 9e08bd5 commit 5411391
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/chunks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ bool Chunks::removeAt(qint64 pos)

char Chunks::operator[](qint64 pos)
{
return data(pos, 1)[0];
return data(pos, 1).at(0);
}

qint64 Chunks::pos()
Expand Down
4 changes: 2 additions & 2 deletions src/qhexedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,9 @@ void QHexEdit::keyPressEvent(QKeyEvent *event)
/* Hex and ascii input */
int key;
if (_editAreaIsAscii)
key = (uchar)event->text()[0].toLatin1();
key = (uchar)event->text().at(0).toLatin1();
else
key = int(event->text()[0].toLower().toLatin1());
key = int(event->text().at(0).toLower().toLatin1());

if ((((key >= '0' && key <= '9') || (key >= 'a' && key <= 'f')) && _editAreaIsAscii == false)
|| (key >= ' ' && _editAreaIsAscii))
Expand Down

0 comments on commit 5411391

Please sign in to comment.