diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2015-05-31 00:15:55 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2015-05-31 00:15:55 -0700 |
commit | 93d6838ab50fc004ef2a854fca59850665b5fb9d (patch) | |
tree | 745cf479276e6e85791cf851cf562164726f13ec /objectivec/GPBUtilities_PackagePrivate.h | |
parent | 5a9be2c6f61201117f2d5b1106ee8e44dac972f5 (diff) | |
download | protobuf-93d6838ab50fc004ef2a854fca59850665b5fb9d.tar.gz protobuf-93d6838ab50fc004ef2a854fca59850665b5fb9d.tar.bz2 protobuf-93d6838ab50fc004ef2a854fca59850665b5fb9d.zip |
Call copy() only if there is something to copy.
RepeatedField::begin()/end() will return NULL when the content is empty.
Passing these NULL values to std::copy() will result in runtime complains
from some compilers (e.g., vs2010).
Diffstat (limited to 'objectivec/GPBUtilities_PackagePrivate.h')
0 files changed, 0 insertions, 0 deletions