Navigation Menu

Skip to content

Commit

Permalink
Place * adjucent to variable
Browse files Browse the repository at this point in the history
type* variable ->
type *variable
  • Loading branch information
kou committed Apr 9, 2012
1 parent 85c9cdc commit 98bb04a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions lib/mrn_path_mapper.cpp
Expand Up @@ -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';
Expand All @@ -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_;
}
Expand All @@ -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_;
}
Expand All @@ -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_;
}
Expand All @@ -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_;
}
Expand Down
12 changes: 6 additions & 6 deletions lib/mrn_path_mapper.hpp
Expand Up @@ -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];
Expand Down

0 comments on commit 98bb04a

Please sign in to comment.