mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 16:39:07 +03:00
Fixes some shadowed vars & avoids string copies using const refs
This commit is contained in:
@@ -299,7 +299,7 @@ int ModelToDataSource::columnCount()
|
||||
|
||||
QString ModelToDataSource::columnNameByIndex(int columnIndex)
|
||||
{
|
||||
if (isInvalid()) return "";
|
||||
if (isInvalid()) return "";
|
||||
QString result = m_model->headerData(columnIndex,Qt::Horizontal, Qt::UserRole).isValid()?
|
||||
m_model->headerData(columnIndex,Qt::Horizontal, Qt::UserRole).toString():
|
||||
m_model->headerData(columnIndex,Qt::Horizontal).toString();
|
||||
@@ -704,7 +704,6 @@ int CallbackDatasource::columnCount(){
|
||||
int currIndex = 0;
|
||||
do {
|
||||
QVariant columnName;
|
||||
CallbackInfo info;
|
||||
info.dataType = CallbackInfo::ColumnHeaderData;
|
||||
info.index = currIndex;
|
||||
emit getCallbackData(info,columnName);
|
||||
|
Reference in New Issue
Block a user