Translations:Development/Tutorials/Common Programming Mistakes/88/pt-br: Difference between revisions

From KDE TechBase
(Created page with "Tome, por exemplo, {{qt|QString}}. Eles sempre devem ser passados para os métodos como <tt>const {{qt|QString}}&</tt>. Embora o {{qt|QString}} seja compartilhado implicitamen...")
 
(No difference)

Latest revision as of 17:34, 22 April 2020

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/Tutorials/Common Programming Mistakes)
Take, for instance, {{qt|QString}}. They should always be passed into methods as <tt>const {{qt|QString}}&</tt>. Even though {{qt|QString}} is implicitly shared it is still more efficient (and safer) to pass const references as opposed to objects by value.

Tome, por exemplo, QString. Eles sempre devem ser passados para os métodos como const QString&. Embora o QString seja compartilhado implicitamente, ainda é mais eficiente (e mais seguro) passar referências const, em oposição a objetos por valor.