Explorar el Código

Fixed GCC warning.:

Бранимир Караџић hace 5 años
padre
commit
4d4ef74fe6
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      examples/common/example-glue.cpp

+ 1 - 3
examples/common/example-glue.cpp

@@ -150,9 +150,7 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText)
 		}
 		else if (ImGui::IsItemHovered() )
 		{
-			char tmp[1024];
-			bx::snprintf(tmp, BX_COUNTOF(tmp), "Documentation: %.*s", url.getLength(), url.getPtr() );
-			ImGui::SetTooltip(tmp);
+			ImGui::SetTooltip("Documentation: %.*s", url.getLength(), url.getPtr() );
 		}
 	}