Mercurial > illumos > onarm
view usr/src/cmd/man/src/util/nsgmls.src/lib/ShortReferenceMap.cxx @ 13:f60a82e85167 default tip
Revert NEC's changes to fix krb5 build
author | Andrew Stormont <andyjstormont@gmail.com> |
---|---|
date | Fri, 02 Mar 2012 22:25:26 +0000 |
parents | 1a15d5aaf794 |
children |
line wrap: on
line source
// Copyright (c) 1995 James Clark // See the file COPYING for copying permission. #pragma ident "%Z%%M% %I% %E% SMI" #ifdef __GNUG__ #pragma implementation #endif #include "splib.h" #include "ShortReferenceMap.h" #ifdef SP_NAMESPACE namespace SP_NAMESPACE { #endif ShortReferenceMap::ShortReferenceMap() : Named(StringC()), used_(0) { } ShortReferenceMap::ShortReferenceMap(const StringC &name) : Named(name) { } void ShortReferenceMap::setNameMap(Vector<StringC> &map) { map.swap(nameMap_); // Make sure we know it's defined. if (nameMap_.size() == 0) nameMap_.resize(1); } #ifdef SP_NAMESPACE } #endif