mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +00:00
[c++/pt-br] Fix translate on editing object as parameters
This commit is contained in:
parent
a743c831a0
commit
13b575af7f
@ -304,7 +304,7 @@ void Dog::Dog()
|
||||
}
|
||||
|
||||
// Objetos (como strings) devem ser passados por referência
|
||||
// se você está modificando-os ou referência const se você não é.
|
||||
// se você pretende modificá-los, ou com const caso contrário.
|
||||
void Dog::setName(const std::string& dogsName)
|
||||
{
|
||||
name = dogsName;
|
||||
|
Loading…
Reference in New Issue
Block a user