diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-05-23 18:57:05 (GMT) |
---|---|---|
committer | Vlad Voicu <vladvoic@gmail.com> | 2011-05-31 18:34:02 (GMT) |
commit | a2085ddc61b74d630d1b117e6b0a2be05dd911ea (patch) | |
tree | 00dd0659e0ed3c2f1d17b4a2ef2dd6d742fab943 /Swiften/Elements/JinglePayload.h | |
parent | 182bdd709a57ab4d17f163ae28c5663fb3dd4287 (diff) | |
download | swift-contrib-a2085ddc61b74d630d1b117e6b0a2be05dd911ea.zip swift-contrib-a2085ddc61b74d630d1b117e6b0a2be05dd911ea.tar.bz2 |
Fixed const references to vectors.
This could potentially cause crashes (same as a previous patch).
Diffstat (limited to 'Swiften/Elements/JinglePayload.h')
-rw-r--r-- | Swiften/Elements/JinglePayload.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Elements/JinglePayload.h b/Swiften/Elements/JinglePayload.h index be02543..5c766b8 100644 --- a/Swiften/Elements/JinglePayload.h +++ b/Swiften/Elements/JinglePayload.h @@ -102,7 +102,7 @@ namespace Swift { this->contents.push_back(content); } - const std::vector<JingleContentPayload::ref> getContents() const { + const std::vector<JingleContentPayload::ref>& getContents() const { return contents; } |