Skip to content

Commit ac51ec9

Browse files
committed
various: fix "unused variable" warnings
low hanging fruits... Signed-off-by: Martin Zenzes <martin.zenzes@dfki.de>
1 parent 18886fd commit ac51ec9

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

lang/tlb/export.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ namespace
202202
Enum::ValueMap const& values = type.values();
203203
m_stream << "<enum name=\"" << type.getName() << "\" " << emitSourceID() << ">\n";
204204
{ Indent indenter(m_indent);
205-
Enum::ValueMap::const_iterator it, end = values.end();
205+
Enum::ValueMap::const_iterator it;
206206
for (it = values.begin(); it != values.end(); ++it)
207207
m_stream << m_indent << "<value symbol=\"" << it->first << "\" value=\"" << it->second << "\"/>\n";
208208
}

typelib/typemodel.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ namespace Typelib
322322

323323
FieldList::const_iterator left_it = m_fields.begin(),
324324
left_end = m_fields.end(),
325-
right_it = right_type.getFields().begin(),
326-
right_end = right_type.getFields().end();
325+
right_it = right_type.getFields().begin();
327326

328327
while (left_it != left_end)
329328
{
@@ -404,7 +403,6 @@ namespace Typelib
404403
Compound const* other_compound = dynamic_cast<Compound const*>(&other);
405404
if (other_compound)
406405
{
407-
FieldList::const_iterator other_end = other_compound->m_fields.end();
408406
for (FieldList::const_iterator it = m_fields.begin(); it != m_fields.end(); ++it)
409407
{
410408
Field const* other_field = other_compound->getField(it->getName());

typelib/typename.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ using namespace Typelib;
99
namespace
1010
{
1111
typedef std::string::value_type NamespaceMarkType;
12-
static const NamespaceMarkType NamespaceMark = '/';
1312
static const char* NamespaceMarkString = "/";
1413

1514
struct NameSeparator : public char_separator<NamespaceMarkType>

typelib/utilmm/configset.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void config_set::insert(std::string const& name, std::string const& value)
6565
{ m_values.insert( make_pair(name, value) ); }
6666
void config_set::insert(std::string const& name, std::list<std::string> const& value)
6767
{
68-
list<string>::const_iterator it, end = value.end();
68+
list<string>::const_iterator it;
6969
for (it = value.begin(); it != value.end(); ++it)
7070
insert(name, *it);
7171
}

0 commit comments

Comments
 (0)