History

Mark the Initialize pointer parameter as const

This makes it clear to the callers that the struct will not be modified by this call.

Martin Storsjö committed 12 years ago

Commit 6d6a63a1 parent 2438b314 files · +5 −5Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+1−1
@@ -200,7 +200,7 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 199 unmodified lines
200200 /*
201201 * SVC Encoder Initialization
202202 */
203−int CWelsH264SVCEncoder::Initialize (SEncParamBase* argv, const INIT_TYPE iInitType) {
203+int CWelsH264SVCEncoder::Initialize (const SEncParamBase* argv, const INIT_TYPE iInitType) {
204204
205205
206206 if ((INIT_TYPE_PARAMETER_BASED != iInitType && INIT_TYPE_PARAMETER_EXT != iInitType)|| NULL == argv) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t