Mercurial > hg > octave-lojdl
changeset 13544:81eef7babeb5
Tagged unused variables with Q_UNUSED, so that no warnings remain.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 26 Jul 2011 23:20:05 +0200 |
parents | 8d529f8103dc |
children | ffc2e1d1ad5f |
files | gui/src/CommandLineParser.cpp gui/src/terminal/History.cpp |
diffstat | 2 files changed, 8 insertions(+), 37 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/CommandLineParser.cpp +++ b/gui/src/CommandLineParser.cpp @@ -43,5 +43,6 @@ void CommandLineParser::parse (int argc, char** argv) { - + Q_UNUSED(argc); + Q_UNUSED(argv); }
--- a/gui/src/terminal/History.cpp +++ b/gui/src/terminal/History.cpp @@ -547,47 +547,17 @@ HistoryScrollBlockArray::getCells (int lineno, int colno, int count, Character res[]) { - /* - if (!count) - return; - - const Block *b = m_blockArray.at (lineno); - - if (!b) - { - memset (res, 0, count * sizeof (Character)); // still better than random data - return; - } - - assert (((colno + count) * sizeof (Character)) < ENTRIES); - memcpy (res, b->data + (colno * sizeof (Character)), - count * sizeof (Character)); - */ + Q_UNUSED(lineno); + Q_UNUSED(colno); + Q_UNUSED(count); + Q_UNUSED(res); } void HistoryScrollBlockArray::addCells (const Character a[], int count) { - /* - Block *b = m_blockArray.lastBlock (); - - if (!b) - return; - - // put cells in block's data - assert ((count * sizeof (Character)) < ENTRIES); - - memset (b->data, 0, ENTRIES); - - memcpy (b->data, a, count * sizeof (Character)); - b->size = count * sizeof (Character); - - size_t res = m_blockArray.newBlock (); - assert (res > 0); - Q_UNUSED (res); - - m_lineLengths.insert (m_blockArray.getCurrent (), count); - */ + Q_UNUSED(a); + Q_UNUSED(count); } void