mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-11-04 04:09:57 +01:00 
			
		
		
		
	style fix
This commit is contained in:
		@@ -204,19 +204,19 @@ std::string PathImpl::expandImpl(const std::string& path)
 | 
				
			|||||||
		++it;
 | 
							++it;
 | 
				
			||||||
		if (it != end && *it == '/')
 | 
							if (it != end && *it == '/')
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
                       const char* homeEnv = getenv("HOME");
 | 
								const char* homeEnv = getenv("HOME");
 | 
				
			||||||
                       if (homeEnv)
 | 
								if (homeEnv)
 | 
				
			||||||
                       {
 | 
								{
 | 
				
			||||||
                               result += homeEnv;
 | 
									result += homeEnv;
 | 
				
			||||||
                               std::string::size_type resultSize = result.size();
 | 
									std::string::size_type resultSize = result.size();
 | 
				
			||||||
                               if (resultSize > 0 && result[resultSize - 1] != '/')
 | 
									if (resultSize > 0 && result[resultSize - 1] != '/')
 | 
				
			||||||
                                       result.append("/");
 | 
										result.append("/");
 | 
				
			||||||
                       }
 | 
								}
 | 
				
			||||||
                       else
 | 
								else
 | 
				
			||||||
                       {
 | 
								{
 | 
				
			||||||
                               result += homeImpl();
 | 
									result += homeImpl();
 | 
				
			||||||
                       }
 | 
								}
 | 
				
			||||||
                       ++it;
 | 
								++it;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else result += '~';
 | 
							else result += '~';
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user