[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] Use const_cast

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:49:50 JST 2012


Kouhei Sutou	2012-04-09 15:35:54 +0900 (Mon, 09 Apr 2012)

  New Revision: e6bd47f7aba037737a404dbb4d896d44cf5600a3
  https://github.com/mroonga/mroonga/commit/e6bd47f7aba037737a404dbb4d896d44cf5600a3

  Log:
    Use const_cast

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+2 -2)
===================================================================
--- ha_mroonga.cc    2012-04-09 15:11:43 +0900 (a8a7674)
+++ ha_mroonga.cc    2012-04-09 15:35:54 +0900 (66394ae)
@@ -569,8 +569,8 @@ static grn_log_level mrn_log_level_default = GRN_LOG_DEFAULT_LEVEL;
 static ulong mrn_log_level = mrn_log_level_default;
 char *mrn_default_parser = NULL;
 char *mrn_default_wrapper_engine = NULL;
-static char *mrn_libgroonga_version = (char *) grn_get_version();
-static char *mrn_version = (char *) MRN_VERSION;
+static char *mrn_libgroonga_version = const_cast<char *>(grn_get_version());
+static char *mrn_version = const_cast<char *>(MRN_VERSION);
 
 static void mrn_logger_func(int level, const char *time, const char *title,
                             const char *msg, const char *location,
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index