Este site funciona melhor com JavaScript.
Página inicial
Ajuda
Acessar
lolengine
/
lol
espelhamento de
https://github.com/lolengine/lol
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
0
Wiki
Atividade
Ver código fonte
base: allow String::C() to be non-const.
undefined
Sam Hocevar
11 anos atrás
pai
af695ca56c
commit
7cd3341504
1 arquivos alterados
com
6 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+6
-0
src/lol/base/string.h
+ 6
- 0
src/lol/base/string.h
Ver arquivo
@@ -101,6 +101,12 @@ public:
return &(*this)[0];
}
/* Non-const version; make sure to not overflow the internal array */
inline char *C()
{
return &(*this)[0];
}
/* Does not initialise the newly allocated characters */
void Resize(int count)
{
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar