A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pgRouting/pgrouting/issues/2869 below:

Drivers should use const char* on the queries sql · Issue #2869 · pgRouting/pgrouting · GitHub

From #2868 (comment)

edges_sql should be const char *
And all other queries that are passed.

The function never mutates the string literal pointed to by edges_sql,
yet the parameter is declared char *.
Changing to const char*:

-        char *edges_sql,
+        const char *edges_sql,

makes intent explicit and prevents accidental writes in future edits.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4