aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/btdeviceselectiondialog.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-29 21:48:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-29 14:01:22 -0700
commit41089b74a9b0acac484a188e2bf078b30e3f4c00 (patch)
tree22c94ac4443879a4e502c4ca030c00ec6ae6908c /desktop-widgets/btdeviceselectiondialog.cpp
parent3923f54e106247f5bf97dfe30f37a710c3f0f7f1 (diff)
downloadsubsurface-41089b74a9b0acac484a188e2bf078b30e3f4c00.tar.gz
Cleanup: don't use QByteArray::data() to create copy
QByteArray::data() provides access to the underlying data for direct manipulation. Thus, the construct csv = fileNamePtr.data(); found in MainWindow::importTxtFiles() suggests that modifications to csv also affect fileNamePtr. This is *not* the case, because csv itself is a QByteArray. It is therefore constructed from the data. Replace this treacherous construct by a simple assignment. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/btdeviceselectiondialog.cpp')
0 files changed, 0 insertions, 0 deletions