mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-21 22:23:46 +00:00
Cleaning
This commit is contained in:
parent
395a383ca1
commit
2eda598ea2
@ -459,13 +459,6 @@ bool CutterCore::tryFile(QString path, bool rw)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_writable = false;
|
|
||||||
if (cf->core && cf->core->io && cf->core->io->desc)
|
|
||||||
{
|
|
||||||
is_writable = cf->core->io->desc->flags & R_IO_WRITE;
|
|
||||||
}
|
|
||||||
// if rbin works, tell entry0, and symbols (main, constructor, ..)
|
|
||||||
|
|
||||||
r_core_file_close (this->core_, cf);
|
r_core_file_close (this->core_, cf);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -114,8 +114,7 @@ bool StringsSortFilterProxyModel::lessThan(const QModelIndex &left, const QModel
|
|||||||
switch (left.column())
|
switch (left.column())
|
||||||
{
|
{
|
||||||
case StringsModel::OFFSET:
|
case StringsModel::OFFSET:
|
||||||
if (left_str.vaddr != right_str.vaddr)
|
return left_str.vaddr < right_str.vaddr;
|
||||||
return left_str.vaddr < right_str.vaddr;
|
|
||||||
case StringsModel::STRING: // sort by string
|
case StringsModel::STRING: // sort by string
|
||||||
return left_str.string < right_str.string;
|
return left_str.string < right_str.string;
|
||||||
case StringsModel::TYPE: // sort by type
|
case StringsModel::TYPE: // sort by type
|
||||||
|
Loading…
Reference in New Issue
Block a user