From a96131988f10a159f1016dd42cff51271747558c Mon Sep 17 00:00:00 2001 From: Tristan Matthews Date: Mon, 12 Aug 2013 13:39:10 -0400 Subject: [PATCH] * #28334: tone: use vector::data() --- daemon/src/audio/sound/tone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/audio/sound/tone.cpp b/daemon/src/audio/sound/tone.cpp index 717e698de..d8af35c64 100644 --- a/daemon/src/audio/sound/tone.cpp +++ b/daemon/src/audio/sound/tone.cpp @@ -63,7 +63,7 @@ Tone::genBuffer(const std::string& definition) const int sampleRate = buffer_->getSampleRate(); std::vector buffer(SIZEBUF); // 1kb - SFLAudioSample* bufferPos = &(*buffer.begin()); + SFLAudioSample* bufferPos = buffer.data(); // Number of format sections std::string::size_type posStart = 0; // position of precedent comma