From: <ibr...@us...> - 2012-06-22 23:53:03
|
Revision: 4362 http://tora.svn.sourceforge.net/tora/?rev=4362&view=rev Author: ibre5041 Date: 2012-06-22 23:52:57 +0000 (Fri, 22 Jun 2012) Log Message: ----------- fix reference vs. lvalue Modified Paths: -------------- branches/tora3/src/connection/tooracleconnection.cpp Modified: branches/tora3/src/connection/tooracleconnection.cpp =================================================================== --- branches/tora3/src/connection/tooracleconnection.cpp 2012-06-22 23:13:55 UTC (rev 4361) +++ branches/tora3/src/connection/tooracleconnection.cpp 2012-06-22 23:52:57 UTC (rev 4362) @@ -330,13 +330,11 @@ case ::trotl::Describe::O_TABLE: { retval->insert("TOOLTIP", QString(d->toString().c_str())); - retval->insert("COLUMNLIST", QVariant::fromValue(toQColumnDescriptionList())); - toQColumnDescriptionList &targetCols = retval->value("COLUMNLIST").value<toQColumnDescriptionList>(); - + + toQColumnDescriptionList targetCols; std::vector<trotl::DescribeColumn*> &sourceCols = (d->whatIsThis() == ::trotl::Describe::O_VIEW) ? static_cast<trotl::DescribeView*>(d)->_columns : static_cast<trotl::DescribeTable*>(d)->_columns; - foreach(::trotl::DescribeColumn *dc, sourceCols) { targetCols.append(toCache::ColumnDescription()); @@ -346,6 +344,7 @@ lastColumn.Datatype = dc->typeName().c_str(); lastColumn.ToolTip = dc->toString().c_str(); } + retval->insert("COLUMNLIST", QVariant::fromValue(targetCols)); } break; case ::trotl::Describe::O_COLUMN: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |