summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SliceChecksums.cpp
blob: fe6a6c992c211546a1f751683b7cd5f8d27abfe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// **********************************************************************
//
// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#include <Ice/SliceChecksums.h>

using namespace std;
using namespace Ice;

namespace Ice
{
const SliceChecksumDict sliceChecksums;
}

IceInternal::SliceChecksumInit::SliceChecksumInit(const char* checksums[])
{
    SliceChecksumDict& m = const_cast<SliceChecksumDict&>(sliceChecksums);
    for(int i = 0; checksums[i] != 0; i += 2)
    {
        m.insert(SliceChecksumDict::value_type(checksums[i], checksums[i + 1]));
    }
}