freebsd-ports/x11-clocks/glclock/files/patch-MString.H
Kurt Jaeger 8045c1ff70 x11-clocks/glclock: Removed -fforce-mem -fforce-addr to fix build with clang
- make patches conform to recommended format (makepatch)

PR:		209399
Submitted by:	yuri@rawbw.com
2016-05-09 18:38:47 +00:00

38 lines
916 B
C

--- MString.H.orig 2000-06-22 14:58:26 UTC
+++ MString.H
@@ -66,7 +66,7 @@
#ifndef ___STRING_H___
#define ___STRING_H___
-#include <iostream.h>
+#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -75,6 +75,7 @@
#include "Define.H"
+using namespace std;
//#define STRING_DEBUG
@@ -307,15 +308,15 @@ class String
// m 矢机誊から n 矢机
String& Mid(int m, int n = 1) ;
- friend String Mid(String s, int m, int n = 1) ;
+ friend String Mid(String s, int m, int n) ;
// 焊から n 矢机
String& Left(int n = 1) ;
- friend String Left(const String& s, int n = 1) ;
+ friend String Left(const String& s, int n) ;
// 宝から n 矢机
String& Right(int n = 1) ;
- friend String Right(const String& s, int n = 1) ;
+ friend String Right(const String& s, int n) ;
String FileDirectory() const ;
String FileNamePart() const ;