Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:49:13 JST 2012
Kouhei Sutou 2012-04-09 17:30:55 +0900 (Mon, 09 Apr 2012) New Revision: 98bb04aa648d2afa670e7e3a1be0376b8cc89a81 https://github.com/mroonga/mroonga/commit/98bb04aa648d2afa670e7e3a1be0376b8cc89a81 Log: Place * adjucent to variable type* variable -> type *variable Modified files: lib/mrn_path_mapper.cpp lib/mrn_path_mapper.hpp Modified: lib/mrn_path_mapper.cpp (+5 -5) =================================================================== --- lib/mrn_path_mapper.cpp 2012-04-09 17:28:16 +0900 (3fdf619) +++ lib/mrn_path_mapper.cpp 2012-04-09 17:30:55 +0900 (d3c1a83) @@ -28,7 +28,7 @@ #include <string.h> namespace mrn { - PathMapper::PathMapper(const char* mysql_path) + PathMapper::PathMapper(const char *mysql_path) : mysql_path_(mysql_path) { db_path_[0] = '\0'; db_name_[0] = '\0'; @@ -42,7 +42,7 @@ namespace mrn { * "/tmp/mysql-test/var/tmp/mysqld.1/#sql27c5_1_0" ==> * "/tmp/mysql-test/var/tmp/mysqld.1/#sql27c5_1_0.mrn" */ - const char* PathMapper::db_path() { + const char *PathMapper::db_path() { if (db_path_[0] != '\0') { return db_path_; } @@ -67,7 +67,7 @@ namespace mrn { * "/tmp/mysql-test/var/tmp/mysqld.1/#sql27c5_1_0" ==> * "/tmp/mysql-test/var/tmp/mysqld.1/#sql27c5_1_0" */ - const char* PathMapper::db_name() { + const char *PathMapper::db_name() { if (db_name_[0] != '\0') { return db_name_; } @@ -88,7 +88,7 @@ namespace mrn { /** * "./${db}/${table}" ==> "${table}" (with encoding first '_') */ - const char* PathMapper::table_name() { + const char *PathMapper::table_name() { if (table_name_[0] != '\0') { return table_name_; } @@ -114,7 +114,7 @@ namespace mrn { /** * "./${db}/${table}" ==> "${table}" (without encoding first '_') */ - const char* PathMapper::mysql_table_name() { + const char *PathMapper::mysql_table_name() { if (mysql_table_name_[0] != '\0') { return mysql_table_name_; } Modified: lib/mrn_path_mapper.hpp (+6 -6) =================================================================== --- lib/mrn_path_mapper.hpp 2012-04-09 17:28:16 +0900 (0416a02) +++ lib/mrn_path_mapper.hpp 2012-04-09 17:30:55 +0900 (ca4115e) @@ -27,13 +27,13 @@ namespace mrn { class PathMapper { public: - PathMapper(const char* mysql_path); - const char* db_path(); - const char* db_name(); - const char* table_name(); - const char* mysql_table_name(); + PathMapper(const char *mysql_path); + const char *db_path(); + const char *db_name(); + const char *table_name(); + const char *mysql_table_name(); private: - const char* mysql_path_; + const char *mysql_path_; char db_path_[MRN_MAX_PATH_SIZE]; char db_name_[MRN_MAX_PATH_SIZE]; char table_name_[MRN_MAX_PATH_SIZE]; -------------- next part -------------- HTML����������������������������...다운로드