View Issue Details

IDProjectCategoryView StatusLast Update
0023867LazarusCustom Drawnpublic2013-02-13 08:04
ReporterlksAssigned ToFelipe Monteiro de Carvalho 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformdarwin x86_64OSOSXOS Version10.8.2
Product Version1.1 (SVN)Product Build 
Target VersionFixed in Version1.1 (SVN) 
Summary0023867: Cannot compile customdrawn_cocoaproc.pas under fpc 2.7.1
DescriptionI get the error message when compiling with fpc 2.7.1:

customdrawn_cocoaproc.pas(135,50) Error: Duplicate identifier "value"
customdrawn_cocoaproc.pas(172,1) Fatal: There were 1 errors compiling module, stopping

Including a patch (not sure if it is right, but it does get the file to compile)
TagsNo tags attached.
Fixed in Revision40286
LazTarget-
Widgetset
Attached Files
  • cocoaproc.patch (1,134 bytes)
    Index: customdrawn_cocoaproc.pas
    ===================================================================
    --- customdrawn_cocoaproc.pas	(revision 40225)
    +++ customdrawn_cocoaproc.pas	(working copy)
    @@ -132,7 +132,7 @@
         function accessibilityAttributeNames: NSArray; override;
         function accessibilityAttributeValue(attribute: NSString): id; override;
         function accessibilityIsAttributeSettable(attribute: NSString): Boolean; override;
    -    procedure accessibilitySetValue_forAttribute(value: id; attribute: NSString); override;
    +    procedure accessibilitySetValue_forAttribute(_value: id; attribute: NSString); override;
         function accessibilityParameterizedAttributeNames: NSArray; override;
         function accessibilityAttributeValue_forParameter(attribute: NSString; parameter: id): id; override;
         function accessibilityActionNames: NSArray; override;
    @@ -1542,7 +1542,7 @@
       end;
     end;
     
    -procedure TCocoaAccessibleObject.accessibilitySetValue_forAttribute(value: id;
    +procedure TCocoaAccessibleObject.accessibilitySetValue_forAttribute(_value: id;
       attribute: NSString);
     begin
       {$ifdef VerboseCDAccessibility}
    
    cocoaproc.patch (1,134 bytes)

Activities

lks

2013-02-09 19:30

reporter  

cocoaproc.patch (1,134 bytes)
Index: customdrawn_cocoaproc.pas
===================================================================
--- customdrawn_cocoaproc.pas	(revision 40225)
+++ customdrawn_cocoaproc.pas	(working copy)
@@ -132,7 +132,7 @@
     function accessibilityAttributeNames: NSArray; override;
     function accessibilityAttributeValue(attribute: NSString): id; override;
     function accessibilityIsAttributeSettable(attribute: NSString): Boolean; override;
-    procedure accessibilitySetValue_forAttribute(value: id; attribute: NSString); override;
+    procedure accessibilitySetValue_forAttribute(_value: id; attribute: NSString); override;
     function accessibilityParameterizedAttributeNames: NSArray; override;
     function accessibilityAttributeValue_forParameter(attribute: NSString; parameter: id): id; override;
     function accessibilityActionNames: NSArray; override;
@@ -1542,7 +1542,7 @@
   end;
 end;
 
-procedure TCocoaAccessibleObject.accessibilitySetValue_forAttribute(value: id;
+procedure TCocoaAccessibleObject.accessibilitySetValue_forAttribute(_value: id;
   attribute: NSString);
 begin
   {$ifdef VerboseCDAccessibility}
cocoaproc.patch (1,134 bytes)

Felipe Monteiro de Carvalho

2013-02-13 08:04

developer   ~0065654

Thanks, applied

Issue History

Date Modified Username Field Change
2013-02-09 19:30 lks New Issue
2013-02-09 19:30 lks File Added: cocoaproc.patch
2013-02-13 07:46 Felipe Monteiro de Carvalho Assigned To => Felipe Monteiro de Carvalho
2013-02-13 07:46 Felipe Monteiro de Carvalho Status new => assigned
2013-02-13 08:04 Felipe Monteiro de Carvalho Fixed in Revision => 40286
2013-02-13 08:04 Felipe Monteiro de Carvalho LazTarget => -
2013-02-13 08:04 Felipe Monteiro de Carvalho Note Added: 0065654
2013-02-13 08:04 Felipe Monteiro de Carvalho Status assigned => resolved
2013-02-13 08:04 Felipe Monteiro de Carvalho Fixed in Version => 1.1 (SVN)
2013-02-13 08:04 Felipe Monteiro de Carvalho Resolution open => fixed