Mod Cplusplus CVS committal
Author : gr84b8
Project : apr_cplusplus
Module : src
Dir : apr_cplusplus/src/tables
Modified Files:
cpp_tables.cpp
Log Message:
add table iterator init (untested
===================================================================
RCS file: /cvsroot/modcplusplus/apr_cplusplus/src/tables/cpp_tables.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- cpp_tables.cpp 2001/11/01 08:33:21 1.2
+++ cpp_tables.cpp 2001/11/21 16:49:13 1.3
@@ -21,8 +21,6 @@
apr_table_set(mTable, key, value);
}
-
-
/* Iterator */
APRTableIterator::APRTableIterator(APRTable *pTable)
: mTable(pTable)
@@ -32,11 +30,9 @@
void APRTableIterator::Init()
{
- /*
- apr_array_header_t *header = apr_table_elts(mTable);
- mArray = apr_table_entry_t *header->elts;
+ const apr_array_header_t *header = apr_table_elts(mTable);
+ mArray = (apr_table_entry_t *)header->elts;
mCurItem = 0;
- */
}
APRTableItem *APRTableIterator::Next()
|