diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-05-27 22:06:16 +0000 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-05-27 22:06:16 +0000 |
| commit | 07ba7461516350ca929c9f2d617ea2284c2ccddc (patch) | |
| tree | 4838757544a34fa4c2c46302e73c5c91c5b666ef | |
| parent | 6ce5279ff33d98480e438866900c9328d654d01b (diff) | |
| download | rockbox-07ba7461516350ca929c9f2d617ea2284c2ccddc.zip rockbox-07ba7461516350ca929c9f2d617ea2284c2ccddc.tar.gz rockbox-07ba7461516350ca929c9f2d617ea2284c2ccddc.tar.bz2 rockbox-07ba7461516350ca929c9f2d617ea2284c2ccddc.tar.xz | |
Fix a warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26339 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | rbutil/rbutilqt/base/ttscarbon.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/ttscarbon.cpp b/rbutil/rbutilqt/base/ttscarbon.cpp index a74cb23..f2e0b7d 100644 --- a/rbutil/rbutilqt/base/ttscarbon.cpp +++ b/rbutil/rbutilqt/base/ttscarbon.cpp @@ -45,7 +45,7 @@ bool TTSCarbon::start(QString *errStr) { (void)errStr; VoiceSpec vspec; - VoiceSpec* vspecref; + VoiceSpec* vspecref = NULL; VoiceDescription vdesc; OSErr error; QString selectedVoice @@ -72,7 +72,6 @@ bool TTSCarbon::start(QString *errStr) // voice not found. Add user notification here and proceed with // system default voice. qDebug() << "selected voice not found, using system default!"; - vspecref = NULL; GetVoiceDescription(&vspec, &vdesc, sizeof(vdesc)); if(vdesc.script != -1) m_voiceScript = (CFStringBuiltInEncodings)vdesc.script; |