From 5bedd3cd04f612f2311ad135f4549a6eb7917ec6 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 25 Apr 2020 23:27:29 +0200 Subject: [PATCH] Removed tab characters from sources. --- src/lay/lay/layMacroEditorTree.h | 2 +- src/lay/lay/laySearchReplaceDialog.cc | 16 ++++++++-------- src/lay/lay/laySearchReplaceDialog.h | 10 +++++----- src/pya/pya/pyaHelpers.cc | 4 ++-- src/tl/tl/tlAlgorithm.h | 6 +++--- src/tl/tl/tlString.cc | 10 +++++----- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/lay/lay/layMacroEditorTree.h b/src/lay/lay/layMacroEditorTree.h index 86db1ccc6..107d268f9 100644 --- a/src/lay/lay/layMacroEditorTree.h +++ b/src/lay/lay/layMacroEditorTree.h @@ -46,7 +46,7 @@ public: MacroTreeModel (QObject *parent, lay::MacroEditorDialog *dialog, lym::MacroCollection *root, const std::string &cat); MacroTreeModel (QWidget *parent, lym::MacroCollection *root, const std::string &cat); - int columnCount (const QModelIndex &parent) const; + int columnCount (const QModelIndex &parent) const; QVariant data (const QModelIndex &index, int role) const; Qt::ItemFlags flags (const QModelIndex &index) const; bool hasChildren (const QModelIndex &parent) const; diff --git a/src/lay/lay/laySearchReplaceDialog.cc b/src/lay/lay/laySearchReplaceDialog.cc index be058866a..41b591104 100644 --- a/src/lay/lay/laySearchReplaceDialog.cc +++ b/src/lay/lay/laySearchReplaceDialog.cc @@ -142,7 +142,7 @@ SearchReplaceResults::size () const return std::max (std::max (m_cell_result.size (), m_data_result.size ()), std::max (m_shape_result.size (), m_inst_result.size ())) + (m_has_more ? 1 : 0); } -int +int SearchReplaceResults::columnCount (const QModelIndex & /*parent*/) const { // Note: keep last column count for empty model to avoid resize events for the header @@ -396,7 +396,7 @@ SearchReplaceResults::data (const QModelIndex &index, int role) const return QVariant (); } -Qt::ItemFlags +Qt::ItemFlags SearchReplaceResults::flags (const QModelIndex & /*index*/) const { return Qt::ItemIsSelectable | Qt::ItemIsEnabled; @@ -414,7 +414,7 @@ SearchReplaceResults::hasIndex (int row, int /*column*/, const QModelIndex &pare return ! parent.isValid () && row < int (size ()); } -QModelIndex +QModelIndex SearchReplaceResults::index (int row, int column, const QModelIndex &parent) const { if (! parent.isValid ()) { @@ -424,13 +424,13 @@ SearchReplaceResults::index (int row, int column, const QModelIndex &parent) con } } -QModelIndex +QModelIndex SearchReplaceResults::parent (const QModelIndex & /*index*/) const { return QModelIndex (); } -int +int SearchReplaceResults::rowCount (const QModelIndex &parent) const { return parent.isValid () ? 0 : int (size ()); @@ -455,7 +455,7 @@ escape_csv (const std::string &s) } } -void +void SearchReplaceResults::export_csv (const std::string &file) { std::ofstream output (file.c_str ()); @@ -488,7 +488,7 @@ SearchReplaceResults::export_csv (const std::string &file) } } -void +void SearchReplaceResults::export_layout (db::Layout &layout) { if (! m_data_result.empty () || ! m_cell_result.empty () || ! m_inst_result.empty ()) { @@ -520,7 +520,7 @@ SearchReplaceResults::export_layout (db::Layout &layout) } } -void +void SearchReplaceResults::export_rdb (rdb::Database &rdb, double dbu) { if (! m_cell_result.empty ()) { diff --git a/src/lay/lay/laySearchReplaceDialog.h b/src/lay/lay/laySearchReplaceDialog.h index 56c2ea71e..0651aaea0 100644 --- a/src/lay/lay/laySearchReplaceDialog.h +++ b/src/lay/lay/laySearchReplaceDialog.h @@ -120,15 +120,15 @@ public: return m_cell_result; } - int columnCount (const QModelIndex &parent) const; + int columnCount (const QModelIndex &parent) const; QVariant data (const QModelIndex &index, int role) const; - Qt::ItemFlags flags (const QModelIndex &index) const; + Qt::ItemFlags flags (const QModelIndex &index) const; bool hasChildren (const QModelIndex &parent) const; bool hasIndex (int row, int column, const QModelIndex &parent) const; QVariant headerData (int section, Qt::Orientation orientation, int role) const; - QModelIndex index (int row, int column, const QModelIndex &parent) const; - QModelIndex parent (const QModelIndex &index) const; - int rowCount (const QModelIndex &parent) const; + QModelIndex index (int row, int column, const QModelIndex &parent) const; + QModelIndex parent (const QModelIndex &index) const; + int rowCount (const QModelIndex &parent) const; void has_more (bool hm); void export_csv (const std::string &file); diff --git a/src/pya/pya/pyaHelpers.cc b/src/pya/pya/pyaHelpers.cc index 34bc0b451..d956305a6 100644 --- a/src/pya/pya/pyaHelpers.cc +++ b/src/pya/pya/pyaHelpers.cc @@ -114,7 +114,7 @@ PYAChannelObject::make_class (PyObject *module) {"write", (PyCFunction) &pya_channel_write, METH_VARARGS, "internal stdout/stderr redirection object: write method" }, {"flush", (PyCFunction) &pya_channel_flush, METH_VARARGS, "internal stdout/stderr redirection object: flush method" }, {"isatty", (PyCFunction) &pya_channel_isatty, METH_VARARGS, "internal stdout/stderr redirection object: isatty method" }, - {NULL, NULL}, + {NULL, NULL}, }; channel_type.tp_flags = Py_TPFLAGS_DEFAULT; @@ -630,7 +630,7 @@ PYASignal::make_class (PyObject *module) {"remove", (PyCFunction) &pya_signal_remove, METH_VARARGS, "internal signal proxy object: -= operator" }, {"set", (PyCFunction) &pya_signal_set, METH_VARARGS, "internal signal proxy object: assignment" }, {"clear", (PyCFunction) &pya_signal_clear, METH_NOARGS, "internal signal proxy object: clears all receivers" }, - {NULL, NULL}, + {NULL, NULL}, }; static PyNumberMethods nm = { }; diff --git a/src/tl/tl/tlAlgorithm.h b/src/tl/tl/tlAlgorithm.h index bc40f2a70..a99c64c5b 100644 --- a/src/tl/tl/tlAlgorithm.h +++ b/src/tl/tl/tlAlgorithm.h @@ -245,7 +245,7 @@ namespace tl } template + typename _Compare> void __push_heap(_RandomAccessIterator __first, _Distance __holeIndex, _Distance __topIndex, const _Tp &__v, _Compare __comp) @@ -311,7 +311,7 @@ namespace tl } template + typename _Tp, typename _Compare> void __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, _Distance __len, const _Tp &__v, _Compare __comp) @@ -476,7 +476,7 @@ namespace tl } --__depth_limit; _RandomAccessIter __cut = - tl::__unguarded_partition(__first, __last, + tl::__unguarded_partition(__first, __last, _ValueType(tl::__median(*__first, *(__first + (__last - __first)/2), *(__last - 1), __comp)), diff --git a/src/tl/tl/tlString.cc b/src/tl/tl/tlString.cc index 2319008d0..c57ccca0e 100644 --- a/src/tl/tl/tlString.cc +++ b/src/tl/tl/tlString.cc @@ -1731,10 +1731,10 @@ std::string format_sci_stlport_fix (double f, int prec, unsigned int flags) std::string res; res.reserve (os.str ().size ()); for (const char *cp = os.str ().c_str (); *cp; ++cp) { - if (*cp == '0' && (cp[1] == 'e' || cp[1] == 'E')) { - ++cp; - } - res += *cp; + if (*cp == '0' && (cp[1] == 'e' || cp[1] == 'E')) { + ++cp; + } + res += *cp; } return res; }; @@ -1841,7 +1841,7 @@ sprintf (const char *f, const std::vector &vv, unsigned int a0) } if (a < vv.size ()) { #if defined(_STLPORT_VERSION) && _STLPORT_VERSION == 0x521 && defined(_MSC_VER) - os << format_sci_stlport_fix (vv [a].to_double (), os.precision (), os.flags ()).c_str (); + os << format_sci_stlport_fix (vv [a].to_double (), os.precision (), os.flags ()).c_str (); #else os << vv [a].to_double (); #endif